本文整理汇总了Java中android.support.v4.widget.ViewDragHelper.INVALID_POINTER属性的典型用法代码示例。如果您正苦于以下问题:Java ViewDragHelper.INVALID_POINTER属性的具体用法?Java ViewDragHelper.INVALID_POINTER怎么用?Java ViewDragHelper.INVALID_POINTER使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类android.support.v4.widget.ViewDragHelper
的用法示例。
在下文中一共展示了ViewDragHelper.INVALID_POINTER属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: reset
private void reset() {
mActivePointerId = ViewDragHelper.INVALID_POINTER;
if (mVelocityTracker != null) {
mVelocityTracker.recycle();
mVelocityTracker = null;
}
}
示例2: reset
private void reset() {
mActivePointerId = ViewDragHelper.INVALID_POINTER;
if (mVelocityTracker != null) {
mVelocityTracker.recycle();
mVelocityTracker = null;
}
}
示例3: onTouchEvent
@Override
public boolean onTouchEvent(MotionEvent event) {
// if (event.getPointerCount() == 1) {
int activePointId = mDragHelper.getActivePointerId();
if (mSwipeable && activePointId == ViewDragHelper.INVALID_POINTER) {
mDragHelper.captureChildView(mTopView, 0);
}
try {
mDragHelper.processTouchEvent(event);//多指滑动会崩溃
} catch (Exception e) {
e.printStackTrace();
}
mGestureDetectorCompat.onTouchEvent(event);
return true;
}
示例4: reset
private void reset() {
mActivePointerId = ViewDragHelper.INVALID_POINTER;
}