How to make a List Dialog with rows like this:
|-----------------------------|
| FIRST LINE OF TEXT (o) | <- this is a "RadioButton"
| second line of text |
|-----------------------------|
I know I should use a custom adapter, passing a row layout with those views (actually, I've made this). But the RadioButton does not get selected when I click on the row.
Is it possible that the dialog manage the radiobuttons it self?
I've found solutions here and here.
Basically, we have to create a "Checkable" layout, because the view's root item must implement the Checkable interface.
So I create a RelativeLayout wrapper that scans for a RadioButton and voilá, the magic is done.
You can do it with Checkbox or whatever you need.