我有一个列表视图,我需要突出一个项目编程如何以编程方式突出显示listview项目?
我tryed这一点:
CalendarList = (ListView) findViewById(R.id.CalendarList);
CalendarList.setAdapter(new ArrayAdapter<String>(this, R.layout.list_item, MyApplication.roundMatches(CalendarPicker.getValue())));
CalendarList.setSelection(2);
但为setSelection没有作品:S
不,不,不的onclick,编程 – NullPointerException