首页 > 其他 > 详细

ViewConfiguration 和 ViewConfigurationCompat

时间:2014-05-23 06:10:15      阅读:929      评论:0      收藏:0      [点我收藏+]

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.

 

getScaledMaximumFlingVelocity()

  • Maximum velocity to initiate a fling, as measured in pixels per second.

 

getScaledTouchSlop ()

  •  Distance in pixels a touch can wander before we think the user is scrolling  。 Touchslop通常用来防止用户的其他触摸行为被判断为滑动。

 

 getScaledPagingTouchSlop ()

  • Distance in pixels a touch can wander before we think the user is scrolling a full page

在ViewConfigurationCompat 也有  getScaledPagingTouchSlop () 。所以要调用ViewConfigurationCompat的这个方法。

 

ViewConfiguration 和 ViewConfigurationCompat,布布扣,bubuko.com

ViewConfiguration 和 ViewConfigurationCompat

原文:http://www.cnblogs.com/yuyutianxia/p/3741886.html

(1)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!