开发者

How to handle multiple click in ListView?

开发者 https://www.devze.com 2023-03-09 10:17 出处:网络
Is it possible to handle 开发者_StackOverflow社区click of listview as well as its childview like checkbox in android?If i understand it right, you want to have a Listview, where you can click on parti

Is it possible to handle 开发者_StackOverflow社区click of listview as well as its childview like checkbox in android?


If i understand it right, you want to have a Listview, where you can click on particular rows and also on checkboxes that are in this rows?! Thats possible, you have to set OnClickListener/OnLongClickListener for the row clicks and an OnCheckedChangeListener for each checkbox. Is that what you wanted?


Here is another solution which can handle click for both list row as well as its child view. Refer this link.

Android custom ListView unable to click on items

I hope it will help you. :)

0

精彩评论

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