j wrote:
> My activity extends ListActivity.  I need to programmaticly change the
> text color of the TextView defined in list_item.xml (copied below).
> 
> I know that Adapter has this method:
> 
> public View  getView(int position, View convertView, ViewGroup parent)
> 
> but there must be a better way than to iterates through every row to
> change the text color of each TextView right?

The idea of getView() is to override it to inflate your own layouts, not 
call it to iterate over anything.

You might want to read my blog post series on implementing fancy 
ListViews over on AndroidGuys:

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

Many of the posts were written for the M5 SDK, but the concepts are 
still sound even if the actual source code would need modifications.

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

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

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

Reply via email to