本文介绍了带有单选按钮的android listview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将如何创建具有5个单选按钮(单选组)的列表视图,其中5个单选按钮具有指定值(例如:5、4、3、2、1),然后将显示平均值...

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...

推荐答案


lvCheckBox.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); 



对此



to this

lvCheckBox.setChoiceMode(ListView.CHOICE_MODE_SINGLE);


这篇关于带有单选按钮的android listview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-28 04:42
查看更多