美文网首页
安卓listview item点击无效问题解决

安卓listview item点击无效问题解决

作者: 510bb14393e1 | 来源:发表于2022-05-15 20:11 被阅读0次

    我们在开发的时候如果listview里有checkbox,button,我们的item就会失效!
    解决方法是
    在item的xml里面,最外层,添加:
    android:descendantFocusability="blocksDescendants"
    就可以了

    相关文章

      网友评论

          本文标题:安卓listview item点击无效问题解决

          本文链接:https://www.haomeiwen.com/subject/nwpburtx.html