java - select and highlight custom listview item -
i want position custom listview item listview.setselection(itemindex); selected item positioning on top of visible part of listview. not highlighted. how can set default highlight of listview item (then disable highlight , select one) without listview re-create thanks! p.s. know asked many times before did not understand how works update not work on android 2.2 (adt emulator , smartphone android 2.2 froyo) drawable/listselector.xml <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@color/red" android:state_focused="true"/> <item android:drawable="@color/yellow" android:state_selected="true"/> <item android:drawable="@color/red" android:state_pressed="true"/> </selector> values/colors.xml <?xml version="1.0" encoding="utf-8"?> ...