I am trying to define single select ListView with radio buttons using
XML exclusively. Basically, I would like that my ListView has a layout
like it would have if I used the following:

listView.setAdapter(
    new ArrayAdapter<String>(
        this, android.R.layout.simple_list_item_single_choice,
VALUES));


android.R.layout.simple_list_item_single_choice is the key part.
I.e. I want list with radio buttons on the right hand side.

Using XML I can set choice mode through android:choiceMode and
I can populate list with values using android:entries, but I don't
know
how to get the radio buttons.

Is this possible using XML?

I know that I could add ButtonGroup and RadioButtons myself but
I would prefer to keep it as simple as possible.

Many thanks, Viktor.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to