本文整理匯總了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;
}