ViewConfiguration类的使用
来源:互联网 发布:樱井知香迅雷种子磁力 编辑:程序博客网 时间:2024/05/19 16:47
ViewConfiguration包含方法用于超时,UI标准常数的大小,和距离。
个人感觉类似于常量类,都是和UI有关的
在实际开发过程中用到了这个方法:
ViewConfiguration.get(context).getScaledTouchSlop();这个方法返回的是一个常量值,我这块用到这个方法是用来根据这个距离判断移动状态。
public class ViewConfiguration {
private final int mTouchSlop;
private static final int TOUCH_SLOP = 8;
public ViewConfiguration() {
mEdgeSlop = EDGE_SLOP;
mFadingEdgeLength = FADING_EDGE_LENGTH;
mMinimumFlingVelocity = MINIMUM_FLING_VELOCITY;
mMaximumFlingVelocity = MAXIMUM_FLING_VELOCITY;
mScrollbarSize = SCROLL_BAR_SIZE;
mTouchSlop = TOUCH_SLOP;
mDoubleTapTouchSlop = DOUBLE_TAP_TOUCH_SLOP;
mPagingTouchSlop = PAGING_TOUCH_SLOP;
mDoubleTapSlop = DOUBLE_TAP_SLOP;
mWindowTouchSlop = WINDOW_TOUCH_SLOP;
//noinspection deprecation
mMaximumDrawingCacheSize = MAXIMUM_DRAWING_CACHE_SIZE;
mOverscrollDistance = OVERSCROLL_DISTANCE;
mOverflingDistance = OVERFLING_DISTANCE;
mFadingMarqueeEnabled = true;
}
* @return Distance in pixels a touch can wander before we think the user is scrolling
*/
public int getScaledTouchSlop() {
return mTouchSlop;
}
}
- ViewConfiguration类的使用
- ViewConfiguration 使用
- ViewConfiguration的简单介绍
- ViewConfiguration的简单介绍
- ViewConfiguration的简单介绍
- ViewConfiguration的简单介绍
- ViewConfiguration类简介
- ViewConfiguration滑动参数设置类
- ViewConfiguration
- ViewConfiguration
- ViewConfiguration中的getScaledTouchSlop()的作用
- ViewConfiguration中的getScaledTouchSlop()的作用
- android中ViewConfiguration的简单介绍
- ViewConfiguration.get(context).getScaledTouchSlop()的意义
- ViewConfiguration.get(context).getScaledTouchSlop()的意义
- 自定义控件之ViewConfiguration的简单总结
- OverScroller、VelocityTracker、ViewConfiguration综合使用达到炫酷效果
- 滑轮控件的研究五、ViewConfiguration的简单介绍
- soj2093: Farmer John
- GUI 创建个Frame,往里面插入Panel,Panel的大小随Frame大小调整 setLayout setBounds
- Linux下.sh文件语法
- 各种远程通信协议分析、比较
- 图文记录apache静态资源服务器安装
- ViewConfiguration类的使用
- uva---489
- Shell脚本调试技术
- 扬州旅游app(一)
- messagebox选择是否后如何判断
- ab测试Apache并发
- android 对象序列化
- 如何将SolidWorks文件另存为.obj文件及如何打开.obj格式文件
- string.xml文件中整型和string型代替以及特殊转义符处理