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的这个方法。

最新文章

  1. .NET Portability Analyzer 已开源
  2. JavaS:网页中的显示和隐藏
  3. SDH误码仪MP1570A的自动化
  4. Gson处理
  5. hadoop中常见元素的解释
  6. HTML5网页制作教程:HTML5块级链接
  7. naotu.baidu.com 非常棒的脑图在线工具
  8. jenkins 通过批处理自动构建 非标准项目
  9. Asp.net 视频摘要
  10. Dynamics CRM2013/2015 禁止欢迎屏幕(Disable the Welcome Screen)
  11. hdu - 3049 - Data Processing(乘法逆元)
  12. C# 读取 vCard 格式
  13. [LeetCode] 231 Power of Two && 326 Power of Three && 342 Power of Four
  14. aria2 加速百度网盘下载
  15. Png 图像缩放保持 Alpha 通道
  16. SHELL脚本学习-练习写一个脚本4
  17. 常用API String
  18. 【ASP.NET MVC系列】浅谈jqGrid 在ASP.NET MVC中增删改查
  19. ajax原生
  20. try....fail....catch...Assert 模式的测试, fail是Junit中的功能

热门文章

  1. linux学习笔记30--命令at和crontab
  2. JVM Specification 9th Edition (4) Chapter 4. The class File Format
  3. 【Selenium】之谷歌、IE、火狐浏览器各个版本的浏览器驱动下载地址
  4. 封装常用的selenium方法
  5. Oracle启动中,spfile.ora、init<SID>.ora、spfile<SID>.ora 这三个文件正确的先后顺序是什么?
  6. 【BZOJ】3404: [Usaco2009 Open]Cow Digit Game又见数字游戏(博弈论)
  7. vim 命令大全(写的非常全和好)http://blog.csdn.net/woshixiaosimao/article/details/54312738
  8. 【python】map list for 运行时长测试
  9. web.config配置文件中的configSource属性
  10. 转载:resNet论文笔记