Wednesday, June 16, 2010

[android-developers] Re: Setting background color on row layout prevents display of highlight on select

You are actually overriding the default behaviour. So, you should also
handle the other states besides the default state.
Look at StateDrawables in the Android docs.

Thanks and Regards,
Kumar Bibek

On Jun 17, 12:23 am, Stacy <oconn...@gmail.com> wrote:
> Getting closer using android:drawSelectorOnTop on the list ...only
> hiccup now is that the selector is also on top of the text!
>
> On Jun 16, 3:18 pm, Connick <oconn...@gmail.com> wrote:
>
> > I'm setting background color based on a given state of an object in each row
> > in a list. That part is working just fine but when I set the background
> > color on the outermost layout the row no longer highlights when selected.
> > Probably a specific attribute I'm not setting/changing?
>
> > Thanks,
> > Stace

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment