Android - ExpandableListView的group里添加button后不能展开的解决方法
2014-10-16 16:25
369 查看
ExpandableListView的group里添加button后不能展开的原因是button获取了原本属于group的焦点,所以不能展开、、
知道原因,解决起来就简单了:设置button, reply.setFocusable(false); 设置button不获取焦点,但可以点击reply.setClickable(true);
如此一来就ok啦、
知道原因,解决起来就简单了:设置button, reply.setFocusable(false); 设置button不获取焦点,但可以点击reply.setClickable(true);
如此一来就ok啦、
相关文章推荐
- Android - ExpandableListView的group里添加button后不能展开的解决方法
- Android - ExpandableListView的group里添加button后不能展开的解决方法
- ExpandableListView的group里添加button后不能展开的解决方法
- Android中ListView点击和ListView的item里面的Button或ImageView不能同时生效问题的解决
- Android之ExpandableListView的属性(Group不展开)
- [Android]ExpandableListView 在适配器中isChildSelectable方法返回了true,子目录点击仍然无响应解决方法
- Android之ExpandableListView的属性(Group不展开)
- Android中Button文字不能一行显示解决方法
- android ExpandableListView 为Group与Child添加菜单
- Android之ExpandableListView的属性(Group不展开)
- Android中的ExpandableListView的使用,以及点击时间禁用,并展开group,去掉小三角
- Android之ExpandableListView的属性(Group不展开)
- Android ListView内的Button添加事件的两种方法
- activity 中添加了个listview , scrollview就不能在顶部显示解决方法
- Android中Button文字不能铺满解决方法
- listview中添加Button后item不能点击的解决办法
- android中ListView点击和ListView的item里面的button或ImageView不能同时生效的解决
- android中ListView点击和ListView的item里面的button或ImageView不能同时生效的解决
- 跪求大神!!!探讨android ExpandableListView group展开后如何不出屏幕
- Android中Button文字不能铺满解决方法