简体   繁体   English

Android自定义ListView与复选框?

[英]Android custom listview with checkbox?

I am new to android and I am starting a new Application in which I have to list down some users. 我是android新手,我正在启动一个新应用程序,其中必须列出一些用户。 The list includes image, name and mobile number and the list also include a checkbox. 该列表包括图像,名称和手机号码,并且该列表还包含一个复选框。 The checkbox has to be enable only when I click on a button like 'Download'. 仅当我单击“下载”之类的按钮时,才必须启用该复选框。 So far I have the listview with checkbox. 到目前为止,我有带复选框的列表视图。 My question is how can I enabled the checkbox only when I click on 'download' button? 我的问题是,只有单击“下载”按钮后才能启用复选框? And also how can I capture the state of Checkbox? 还有如何捕获Checkbox的状态? Any help will be appriciate. 任何帮助将是适当的。 Thanks... 谢谢...

try looking in this tutorial http://www.softwarepassion.com/android-series-custom-listview-items-and-adapters . 尝试查看本教程http://www.softwarepassion.com/android-series-custom-listview-items-and-adapters This is where I lernt how to do this... 这是我要怎么做的地方...

You will need a custom listview in Android. 您将需要在Android中自定义listview。

Then implement your own listview 然后实现自己的列表视图

Wish you all the best. 祝你一切顺利。

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

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