Using SimpleCursorAdapter.ViewBinder to change the color of TextView
I'm developing an alarm clock app for android and I want to have displayed list of alarms on the main screen. Each row of this ListView is defined in xml file. And I want to have separate TextViews for each day of week. Program will check in sqlite db if for eg. value for monday is = 1 and then change color of this TextView to red. I have written this code, but that doesn't work. What's wrong? private void fillData() { // Get all of the notes from the database and create the item list Cursor c = db.fetchAllAlarms(); startManagingCursor(c); String[] from = new String[] { db.KEY_TIME, db.KEY