@UiThread public class MultiFingerTapGestureDetector extends MultiFingerGesture<MultiFingerTapGestureDetector.OnMultiFingerTapGestureListener>
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
MultiFingerTapGestureDetector.OnMultiFingerTapGestureListener |
context, listener| 构造器和说明 |
|---|
MultiFingerTapGestureDetector(android.content.Context context,
PalmapGesturesManager gesturesManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
analyzeEvent(android.view.MotionEvent motionEvent) |
protected boolean |
canExecute(int invokedGestureType) |
float |
getMultiFingerTapMovementThreshold()
Get maximum movement allowed for any finger before rejecting this gesture.
|
long |
getMultiFingerTapTimeThreshold()
Get maximum time in millis that fingers can have a contact with the screen before rejecting this gesture.
|
protected void |
reset() |
void |
setMultiFingerTapMovementThreshold(float multiFingerTapMovementThreshold)
Set maximum movement allowed in pixels for any finger before rejecting this gesture.
|
void |
setMultiFingerTapMovementThresholdResource(int multiFingerTapMovementThresholdDimen)
Set maximum movement allowed in dp for any finger before rejecting this gesture.
|
void |
setMultiFingerTapMovementThresholdResource(java.lang.String multiFingerTapMovementThresholdDimen) |
void |
setMultiFingerTapTimeThreshold(long multiFingerTapTimeThreshold)
Set maximum time in millis that fingers can have a contact with the screen before rejecting this gesture.
|
analyzeMovement, getCurrentSpan, getCurrentSpanX, getCurrentSpanY, getFocalPoint, getPointersCount, getPreviousSpan, getPreviousSpanX, getPreviousSpanY, getRequiredPointersCount, getSpanThreshold, isSloppyGesture, setSpanThreshold, setSpanThresholdResource, setSpanThresholdResourcegetCurrentEvent, getGestureDuration, getPreviousEvent, isEnabled, onTouchEvent, removeListener, setEnabled, setListenerpublic MultiFingerTapGestureDetector(android.content.Context context,
PalmapGesturesManager gesturesManager)
protected boolean analyzeEvent(android.view.MotionEvent motionEvent)
protected boolean canExecute(int invokedGestureType)
protected void reset()
public long getMultiFingerTapTimeThreshold()
public void setMultiFingerTapTimeThreshold(long multiFingerTapTimeThreshold)
multiFingerTapTimeThreshold - maximum touch time for tap gesture.public float getMultiFingerTapMovementThreshold()
public void setMultiFingerTapMovementThreshold(float multiFingerTapMovementThreshold)
We encourage to set those values from dimens to accommodate for various screen sizes.
multiFingerTapMovementThreshold - movement threshold.public void setMultiFingerTapMovementThresholdResource(@DimenRes
int multiFingerTapMovementThresholdDimen)
multiFingerTapMovementThresholdDimen - movement threshold.public void setMultiFingerTapMovementThresholdResource(java.lang.String multiFingerTapMovementThresholdDimen)