ViewConfiguration 和 ViewConfigurationCompat
Contains methods to standard constants used in the UI for timeouts, sizes, and distances.
一。几个常用的方法
返回初始化滑动的最大速度值和最小速度值,以像素/秒为单位
getScaledMinimumFlingVelocity()
Minimum velocity to initiate a fling, as measured in pixels per second.
mMinimumFlingVelocity = (
int
) (density * 50 +
0
.5f);
getScaledMaximumFlingVelocity()
Maximum velocity to initiate a fling, as measured in pixels per second.
mMaximumFlingVelocity = (
int
) (density * 4000 +
0
.5f);
getScaledTouchSlop ()
Distance in pixels a touch can wander before we think the user is scrolling 。
mTouchSlop = (
int
) (density * 16 +
0
.5f);
getScaledPagingTouchSlop ()
Distance in pixels a touch can wander before we think the user is scrolling a full page
mPagingTouchSlop = (
int
) (density * 32 +
0
.5f);
在ViewConfigurationCompat 也有 getScaledPagingTouchSlop () 。所以要调用ViewConfigurationCompat的这个方法。
最新文章
- .NET Portability Analyzer 已开源
- JavaS:网页中的显示和隐藏
- SDH误码仪MP1570A的自动化
- Gson处理
- hadoop中常见元素的解释
- HTML5网页制作教程:HTML5块级链接
- naotu.baidu.com 非常棒的脑图在线工具
- jenkins 通过批处理自动构建 非标准项目
- Asp.net 视频摘要
- Dynamics CRM2013/2015 禁止欢迎屏幕(Disable the Welcome Screen)
- hdu - 3049 - Data Processing(乘法逆元)
- C# 读取 vCard 格式
- [LeetCode] 231 Power of Two &;&; 326 Power of Three &;&; 342 Power of Four
- aria2 加速百度网盘下载
- Png 图像缩放保持 Alpha 通道
- SHELL脚本学习-练习写一个脚本4
- 常用API String
- 【ASP.NET MVC系列】浅谈jqGrid 在ASP.NET MVC中增删改查
- ajax原生
- try....fail....catch...Assert 模式的测试, fail是Junit中的功能
热门文章
- linux学习笔记30--命令at和crontab
- JVM Specification 9th Edition (4) Chapter 4. The class File Format
- 【Selenium】之谷歌、IE、火狐浏览器各个版本的浏览器驱动下载地址
- 封装常用的selenium方法
- Oracle启动中,spfile.ora、init<;SID>;.ora、spfile<;SID>;.ora 这三个文件正确的先后顺序是什么?
- 【BZOJ】3404: [Usaco2009 Open]Cow Digit Game又见数字游戏(博弈论)
- vim 命令大全(写的非常全和好)http://blog.csdn.net/woshixiaosimao/article/details/54312738
- 【python】map list for 运行时长测试
- web.config配置文件中的configSource属性
- 转载:resNet论文笔记