Question

In my application, I want to do something similar to what GMail does to manage multiple e-mail accounts. Here is an image of what I want:

GMail

I do not know if the GMail app developers used a RadioGroup, but that seems the most elegant solution, so I don't have to manually handle selections, as only one RadioButton should be selected at any time. I have tried using the XML tag for android:divider and android:showDividers, but I was not succesful.

Was it helpful?

Solution

I think it's a ListView, not a RadioGroup.
You can have RadioButtons in a ListView.
Here is an example.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top