binklee wrote:
> Hi everybody,
> 
> I've an activity that extends ListActivity. I do a kind of check on
> all elements of the list and if an element corresponds to my criteria,
> I would like to put the background of this element in green (by
> example) or to add any visual effect on this element. How can I modify
> the background of this element ?
> 
> Any recommandations, hints ?

You will need to make some changes to your Adapter to accomplish this.

If it is ArrayAdapter, you will probably want to override getView(). I
have a long series of dated, poorly-formatted blog posts on this:

http://androidguys.com/?s=fancy+listviews

If it is SimpleCursorAdapter, you can either override bindView() or
provide a view binder via setViewBinder().

If it is some other kind of adapter, you will need to do something along
these lines, but perhaps with different methods.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books.html

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to