开发者

How to custom checkbox in listview to check only one like radio button

I have list which contain checkbox in each list and I want to define these checkbox for only one of check box can select (like radio 开发者_开发知识库button) anybody have any ideas?


Set clickable/focusable/focusableInTouchMode to false, and then the list item vill receive the click, then set the checkbox state manually. If the checkbox is clickable, then the item will not receive any event, this is an old Android bug still not fixed. Even worse if you want to use EditTexts, but don't get me there

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜