after quite a googling without a luck I come here again to bother you all :)
I have ListView that in my app that is populated via SQLitle db from cursor.. looks like this:
public void updateShiftList(String x) {
db.openToRead();
listShifts = (ListView) findViewById(R.id.listShifts);
// get data
cursor = db.getPlan(x);
startManagingCursor(cursor);
// set adapter
String[] from = { dataManager.KEY_SHIFT, dataManager.KEY_DATE };
int[] to = { R.id.rowShift, R.id.rowDate };
adapter = new SimpleCursorAdapter(this, R.layout.row, cursor, from, to);
listShifts.setAdapter(adapter);
db.close();
}
in row.xml I have image before each row and I would like to implement function or check method during creation of this ListView that would change the image depending on some parameters that I would test, eg R.id.rowDate == TodayDate ( there is date in that text field ) or if the R.id.rowDate is next date from today....
How could I do that, or where... is there some Overide that could be used ? I'm learning java on this simple project as I'm doing it so be gentle :)
Thanks all, Vlad