ViewConfiguration.get(context).getScaledTouchSlop()的意义

来源:互联网 发布:linux snmp trap 接收 编辑:程序博客网 时间:2024/06/10 16:21

  ViewConfiguration.get(context).getScaledTouchSlop()

/**

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

*/

它获得的是触发移动事件的最短距离,如果小于这个距离就不触发移动控件,如viewpager就是用这个距离来判断用户是否翻页


1 0