android - How to bind more then one column to a textview -
i curious if there way bind more 1 db column resource. need bind more information r.id.secondline difficulty column. i'm unsure how go this? i'm subclassing simplecursoradapter. should subclass adapter? if how go it?
cursor activityhikes = mdbadapter.fetchallhikes(false); startmanagingcursor(activityhikes); string[] = new string[] { activityhike.name, activityhike.difficulty, activityhike.thumbnail}; int[] = new int[]{r.id.maintext, r.id.secondline, r.id.icon}; hikeadapter hikes = new hikeadapter(this, r.layout.hike_row, activityhikes, from, to); listview list = (listview) this.findviewbyid(r.id.hikelist); list.setadapter(hikes);
thanks
for has same problem link helped me alot too. android: binding data database checkbox in listview?
i don't think can bind more 1 column view using simplecursoradapter
. best bet subclass cursoradapter
, implement bindview
special formatting want text field.
Comments
Post a Comment