How do I change the text attributes like text color/size based
on the values obtained during runtime. Currently I am displaying a
code using the following code.
Cursor c = mDbHelper.fetchNumber(numbr);
startManagingCursor(c);
String[] from = new String[] { NumberDbAdapter.KEY_TITLE };
int[] to = new int[] { R.id.text1 };
// Now create an array adapter and set it to display using our
row
SimpleCursorAdapter notes =
new SimpleCursorAdapter(this, R.layout.notes_row, c, from,
to);
setListAdapter(notes);
I want to change the style of each item in the ListView based on its
value.
--
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