简体   繁体   English

如何在列表视图android中使用simpleAdapter自定义复选框?

[英]how to use simpleAdapter for custom checkbox in ListView android?

Iam using ArrayAdapter for ListView.Each ListItems contains checkbox,Title,TitleInfo(below title),period,Image(static/from drawable).Now i want to develop this code into simple adapter.How to use simple adapter for checkboxes and how to handle checkbox events in this simpleAdapter? 我使用ArrayAdapter的ListView。每个ListItems包含复选框,标题,标题信息(标题下方),句点,图像(静态/可绘制)。现在我想将此代码开发为简单的适配器。如何将简单的适配器用于复选框以及如何处理此simpleAdapter中的复选框事件?

Regards, Android developer 问候,Android开发人员

I don't think there is a way to do that with SimpleAdapter. 我不认为使用SimpleAdapter可以做到这一点。 You'll have to create your own custom ListView items as described in this tutorial 您必须按照本教程中的说明创建自己的自定义ListView项

希望此链接对您有帮助,您需要即兴创作才能获得想要的东西,祝您好运...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM