May be you can try settings selectors to individual list items then. Set the
selector to the background of the item's layouts.

On Thu, Nov 4, 2010 at 4:57 PM, Johannes De Smedt <
johannes.desm...@gmail.com> wrote:

> I have looked, but I don't seem to see a solution. I have successfully
> implemented a list with 2 types of items, but I can set the
> listSelector only for the whole list. Not for each type of items...
>
> On 3 nov, 17:42, Kumar Bibek <coomar....@gmail.com> wrote:
> > Yes you can. Look for examples where ListViews can show multiple view
> types.
> >
> > On Wed, Nov 3, 2010 at 10:10 PM, Johannes De Smedt <
> >
> >
> >
> > johannes.desm...@gmail.com> wrote:
> > > Hi,
> >
> > > In my application I have a list with 2 types of items. For the first
> > > type I can use the default selector drawn behind the content, but for
> > > the second type I would need another selector that is drawn in front
> > > of the content.
> >
> > > Can this be done in android?
> >
> > > The reason why I need another selector, is because the second type is
> > > an image that fills the whole cell. Therefore the default selector is
> > > not visible. When I draw the selector in front of the image, the
> > > images is not visible. Therefor I would like a transparent selector
> > > for those items, and keeping the default one for the other ones.
> >
> > > Other suggestions are also welcome!
> >
> > > --
> > > 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<android-developers%2bunsubscr...@googlegroups.com>
> <android-developers%2bunsubscr...@googlegroups.com<android-developers%252bunsubscr...@googlegroups.com>
> >
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
>
> --
> 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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com

-- 
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

Reply via email to