如何在Android运行时将chechbox添加到列表中的每个项目 [英] How to add chechbox to every item in list at runtime in android
本文介绍了如何在Android运行时将chechbox添加到列表中的每个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在listview的每个项目上添加一个复选框.单击复选框应将其选中/取消选中.
感谢
I need to add checkbox with every item of listview.On click of checkbox it should be checked/unchecked.
thanks
推荐答案
只需将CheckBox项添加到列表行布局即可. 此处 [ ^ ].
Just add a CheckBox item to your list row layout. There are plenty of descriptions on how to do it here[^].
这篇关于如何在Android运行时将chechbox添加到列表中的每个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文