ViewConfiguration小结

首先,看官方文档:https://developer.android.com/reference/android/view/ViewConfiguration.html
此类的作用是(Contains methods to standard constants used in the UI for timeouts, sizes, and distances.):包含了一些常用的UI使用的关于时间,尺寸,距离的一些常量。

重要的成员方法:

1.获取实例:

get(android.content.Context).get(android.content.Context)

2.双击的最短时间

getDoubleTapTimeout()

3.长按的最短时间

getLongPressTimeout()

4.惯性滑动的最大/最小速度

getMaximumFlingVelocity()/getMinimumFlingVelocity

5.被当作为双击的最大距离

getScaledDoubleTapSlop()

5.两次MotionEvent.ACTION_MOVE,可以当作为滑动的最小距离

getScaledTouchSlop()

你可能感兴趣的:(ViewConfiguration小结)