Ahh that was it, you only need the state_pressed and state_selected it seems, i had pressed and focused. Many thanks, this was very useful. Still i have the impression this should be more simple than it actually is. :)
regards, On Monday, February 27, 2012 4:18:27 PM UTC, Kostya Vasilyev wrote: > > On 02/27/2012 08:13 PM, Bluemercury wrote: > > Okay, even after those changes i still get the focus color behind the > > gradient background. i just putted round corners in the gradient and i > > can see it behind....let me show what i have now then: > Here is my selector: > > <?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_dark"/> > > </selector> > > I think you're missing android:state_selected in yours. Sorry about the > confusion - I was typing from memory and just now went to look at the code. > > -- Kostya > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en