ExpandableListview中 解决ImageButton冲突的问题。

来源:互联网 发布:网络管理考试题 编辑:程序博客网 时间:2024/05/22 05:22


http://stackoverflow.com/questions/11818278/android-expandable-list-view-doesnt-have-reaction-to-click-it-doesnt-expan



只需要 在代码中 调用setFocusable(false) 方法, 只要在XML中设置 false 为什么不行,这个需要继续调查。

ibDeleteRcipe.setFocusable(false);
第二种 解决方式:在Item布局中 添加android:descendantFocusability="blocksDescendants" 
见 http://mylifewithandroid.blogspot.com/2011/08/focus-problems-with-list-rows-and.html

0 0
原创粉丝点击