Here is how I do it:
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@android:color/transparent" android:state_pressed="true"/> <item android:drawable="@android:color/transparent" android:state_selected="true"/> <item android:drawable="@color/message_list_read_background_light"/> </selector> -- K 2012/9/12 Lars <[email protected]> > Hi i got a problem with a listview, > how can i get to change the state when my listview item is selected (in > the use of multipane view) > i only need to change that state the other states like pressed and things > i like to keep default > > Thanks > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

