Click here to Skip to main content
16,016,489 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how am i going to create a listview with 5 radiobuttons (radiogroup) wherein the 5 radiobuttons has a designated value (example: 5,4,3,2,1) and then will display the average...
Posted

A search on google for "Android ListView RadioButton"[^] came up with quite a few interesting hits ;-)
 
Share this answer
 
Check this tutorial
In that code replace this line

Java
lvCheckBox.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); 


to this

Java
lvCheckBox.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900