listview - Android: How can I add a working StateSelector to 3D List -


i used tutorial here create working 3d list. problem of custom list is, doesn´t work add stateselector row.

row_selector.xml

<selector xmlns:android="http://schemas.android.com/apk/res/android" > <item android:state_enabled="true"   android:state_pressed="true" android:drawable="@drawable/background_selected" /> <item android:state_enabled="true"  android:state_focused="true" android:drawable="@drawable/background_selected" /> <item android:state_enabled="true"  android:state_selected="true" android:drawable="@drawable/background_selected" /> <item  android:drawable="@drawable/background" /> 

listitem:

<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/row_selector" android:padding="10dip" >  <textview     android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:textsize="18dip" />  </relativelayout> 

i think custom list doesn´t support this. how support selectors or achieve similar behaviour?

edit: list has general problem updates. example progressbar in row updating while scroll list. if not moving progresbar ist not updating anymore until start scrolling again. can´t figure out how fix behaviour.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -