问题:ListView的item项选中没有背景色变化等选中效果
解决:由于行布局中某些控件抢夺了焦点(例如Button)
在行布局中添加以下属性来夺回焦点
<LinearLayout
.......
android:descendantFocusability="blocksDescendants"
.....>
</LinearLayout>
问题:ListView的item项选中没有背景色变化等选中效果
解决:由于行布局中某些控件抢夺了焦点(例如Button)
在行布局中添加以下属性来夺回焦点
<LinearLayout
.......
android:descendantFocusability="blocksDescendants"
.....>
</LinearLayout>