ScrollView嵌套ExpandableListView,ExpandableListView的写法
来源:互联网 发布:谭浩强c语言第四版答案 编辑:程序博客网 时间:2024/05/01 22:19
public class MyExpandableListView extends ExpandableListView { public MyExpandableListView(Context context) { super(context); } public MyExpandableListView(Context context, AttributeSet attrs) { super(context, attrs); } public MyExpandableListView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } /**通过重新dispatchTouchEvent方法来禁止滑动*/ @Override public boolean dispatchTouchEvent(MotionEvent ev) { // TODO Auto-generated method stub if (ev.getAction() == MotionEvent.ACTION_MOVE) { return true;/**只要简单改下这里就可以禁止Gridview进行滑动*/ } return super.dispatchTouchEvent(ev); } @Override public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int expandSpec = MeasureSpec.makeMeasureSpec( Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); }}
0 0
- ScrollView嵌套ExpandableListView,ExpandableListView的写法
- Scrollview嵌套ExpandableListView 的方法
- ScrollView嵌套 ExpandableListView
- Scrollview中嵌套Expandablelistview
- ScrollView中嵌套ExpandableListView
- ScrollView嵌套ExpandableListView显示不正常的问题
- android scrollview中嵌套expandablelistview
- android scrollview中嵌套expandablelistview
- android scrollview中嵌套expandablelistview
- Android ScrollView嵌套ExpandableListView显示不正常的问题的解决办法
- android关于scrollview嵌套ExpandableListView的实现1
- android关于scrollview嵌套ExpandableListView的实现2
- Android ScrollView中嵌套ExpandableListView,item不显示的问题
- ScrollView嵌套下ListView或ExpandableListView的高度自适应
- ScrollView嵌套下ListView或ExpandableListView的高度自适应
- ExpandableListView使用(三)-ScrollView嵌套ExpandableListView,列表显示不全
- Android ScrollView嵌套listview或ExpandableListView
- android scrollview中嵌套expandablelistview高度问题
- 435. Non-overlapping Intervals
- 标题 node第一个服务器程序
- Java开发中的23种设计模式详解
- VC6编译错误总结
- Android SD卡简单的文件读写操作
- ScrollView嵌套ExpandableListView,ExpandableListView的写法
- OptionsMenu创建方式 以及invalidateOptionsMenu
- Redis内存数据库的初步认识与学习
- Android注解式绑定控件
- 云平台和架构
- 面试题总结及学习
- 1061. Dating (20)解题报告
- 走马灯--动画实现
- MTK UART驱动代码分析