ITeye博客

关于ListView 中添加 Button后不能ListItem不能点击问题

zyzzsky · 2013-05-30 17:51 · android · ListView · 非技术 · Markdown

如果在listview中添加了button而不能点击listview时,可以在layout布局中去掉button的焦点就可以了,这样listview中的linearlayout和button都可以点击量

 

在布局中添加该代码就解决问题:

android:descendantFocusability="blocksDescendants"

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。