Hi! I have a radiobutton group in Android that I populate with data from a database. To get the data to show next to each radiobutton I have used the ListAdapter:
String[] columns = new String[] {DataHelper.KEY_WORD, DataHelper.KEY_ALT1 , DataHelper.KEY_ALT2 ,DataHelper.KEY_ALT3 ,DataHelper.KEY_ALT4 };
// the XML defined views which the data will be bound to
int[] to = new int[] { R.id.word, R.id.q1, R.id.q2, R.id.q3 , R.id.q4 };
SimpleCursorAdapter mAdapter = new SimpleCursorAdapter(this, R.layout.game, c, columns, to);
this.setListAdapter(mAdapter);
In order to get the ListAdapter to work I need a listview, but the listview seems to disable my OnClickListener.
How could I solve this? Is there anyway to not use a listview to populate the radiogroup, or a way to keep the onClickLIsteners active inside it?