You should create your own adapter (probably derived from SimpleCursorAdapter) that does this in its bindView method.
On Tue, Mar 17, 2009 at 11:57 PM, Markiv <vikramshe...@gmail.com> wrote: > > I have table with 3 columns which is binded to an XML document with > three text views. > > String[] from = new String[]{A,B,C}; > > int [] to = new int[] {R.id.a,R.id.b,R.id.c}; > > Where R.id.a, R.id.b, R.id.c -> TextView > > Depending on the value store in the third column, I want to change the > text color in R.id.c > > How should, I go about with this. > > This is what I have so far : > > SimpleCursorAdapter entry = new SimpleCursorAdapter(this, > R.layout.addrow, vCursor , from , to); > > setListAdapter(entry); > > If you can provide me an example, that would be really helpful. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---