ScroListView
来源:互联网 发布:淘宝刷单兼职91lingla 编辑:程序博客网 时间:2024/06/08 06:32
package org.com.cctest.view;/** * Created by Administrator on 2016/2/14. */import android.content.Context;import android.util.AttributeSet;import android.view.MotionEvent;import android.widget.ListView;public class ScroListView extends ListView { public ScroListView(Context context) { super(context); // TODO Auto-generated constructor stub } public ScroListView(Context context, AttributeSet attrs) { super(context, attrs); } public ScroListView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); } @Override public boolean dispatchTouchEvent(MotionEvent ev) { if(ev.getAction() == MotionEvent.ACTION_MOVE){ return true; } return super.dispatchTouchEvent(ev); }}
0 0
- ScroListView
- 关于 Java 数组的 12 个最佳方法
- App Widget的使用
- Windows系统下通过xmanager远程桌面控制Linux
- 开始写博客
- Linux多线程与进程之间通信 实例2
- ScroListView
- 最长递增子序列
- PReLU:Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification 笔记
- C++学习之引用特性
- 虚函数(virtual function)
- 机房重构之七层登录
- CentOS7 yum 安装git
- HTML
- 电话拨号器,短信发送器