XExpandableListView BaseExpandableListAdapter 注意事项
2014-08-07 14:41
405 查看
1.XExpandableListView 继承自ExpandableListView 实现分页功能
2.点击父项没触发事件,一般与焦点是 否获得有关,页面不要有 android:focusable="true"
android:focusableInTouchMode="true"
3.点击子项没触发事件:除了要设置isChildSelectable()方法返回true, 还要看getChildView()方法的布局里面所使用的控件,listview一般不行,imagebutton也不行,button,imageview要加上android:focuable="false"
2.点击父项没触发事件,一般与焦点是 否获得有关,页面不要有 android:focusable="true"
android:focusableInTouchMode="true"
3.点击子项没触发事件:除了要设置isChildSelectable()方法返回true, 还要看getChildView()方法的布局里面所使用的控件,listview一般不行,imagebutton也不行,button,imageview要加上android:focuable="false"
相关文章推荐
- Android之ExpandableList扩展用法(基于BaseExpandableListAdapter)
- Android开发之ExpandableListView扩展(BaseExpandableListAdapter的使用)(完整版)
- ListView之BaseExpandableListAdapter
- Android ExpandableListView 子item点击事件 注意事项
- ExpandableListView的自定义布局以及注意事项
- 【Android】树形菜单、扩展下拉菜单BaseExpandableListAdapter、AbsListView
- 【Android】树形菜单、扩展下拉菜单BaseExpandableListAdapter、AbsListView
- adapter中操作listview之外的View 注意事项
- Adapter实现ListView带多选框等状态的自定义控件的注意事项
- Android ExpandableListView和ScrollView联用的一些注意事项
- ExpandableListView+CheckBox使用注意事项
- Android ExpandableListView和ScrollView联用的一些注意事项
- ExpandableListView(手风琴)(1)---BaseExpandableListAdapter
- ExpandableListView以及BaseExpandableListAdapter的基本使用
- Android之ExpandableList扩展用法(基于BaseExpandableListAdapter)
- Android ListView适配器BaseAdapter中getItemViewType需要注意的问题
- 【转】实现展开列ExpandableListView的三种方式之SimpleExpandableListAdapter实例
- ExpandableListView扩展(BaseExpandableListAdapter的使用)
- PullToRefreshExpandableListView 和BaseExpandableListAdapter
- Android学习第五天————ExpandableListView组件通过适配器BaseExpandableListAdapter实现两层列表项