@UiThread public class StandardScaleGestureDetector extends ProgressiveGesture<StandardScaleGestureDetector.StandardOnScaleGestureListener>
ScaleGestureDetector.
To get access to all the methods found in ScaleGestureDetector
use getUnderlyingScaleGestureDetector().
| 限定符和类型 | 类和说明 |
|---|---|
static class |
StandardScaleGestureDetector.SimpleStandardOnScaleGestureListener |
static interface |
StandardScaleGestureDetector.StandardOnScaleGestureListener |
context, listener| 构造器和说明 |
|---|
StandardScaleGestureDetector(android.content.Context context,
PalmapGesturesManager palmapGesturesManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
analyzeEvent(android.view.MotionEvent motionEvent) |
protected void |
gestureStopped() |
float |
getScaleFactor() |
float |
getSpanSinceStartThreshold()
Get the threshold span in pixels between initial fingers position and current needed
for this detector to qualify it as a scale gesture.
|
android.view.ScaleGestureDetector |
getUnderlyingScaleGestureDetector()
Get the underlying
ScaleGestureDetector. |
void |
interrupt()
Interrupt a gesture by stopping it's execution immediately.
|
boolean |
isScalingOut()
Check whether user is scaling out.
|
protected java.util.Set<java.lang.Integer> |
provideHandledTypes() |
void |
setSpanSinceStartThreshold(float spanSinceStartThreshold)
Set the threshold span in pixels between initial fingers position and current needed
for this detector to qualify it as a scale gesture.
|
void |
setSpanSinceStartThresholdResource(int spanSinceStartThresholdDimen)
Set the threshold span in dp between initial fingers position and current needed
for this detector to qualify it as a scale gesture.
|
void |
setSpanSinceStartThresholdResource(java.lang.String spanSinceStartThresholdDimen) |
gestureStarted, isInProgress, setEnabledanalyzeMovement, canExecute, getCurrentSpan, getCurrentSpanX, getCurrentSpanY, getFocalPoint, getPointersCount, getPreviousSpan, getPreviousSpanX, getPreviousSpanY, getRequiredPointersCount, getSpanThreshold, isSloppyGesture, reset, setSpanThreshold, setSpanThresholdResource, setSpanThresholdResourcegetCurrentEvent, getGestureDuration, getPreviousEvent, isEnabled, onTouchEvent, removeListener, setListenerpublic StandardScaleGestureDetector(android.content.Context context,
PalmapGesturesManager palmapGesturesManager)
protected boolean analyzeEvent(android.view.MotionEvent motionEvent)
protected void gestureStopped()
public void interrupt()
ProgressiveGesture@NonNull protected java.util.Set<java.lang.Integer> provideHandledTypes()
public boolean isScalingOut()
public android.view.ScaleGestureDetector getUnderlyingScaleGestureDetector()
ScaleGestureDetector.ScaleGestureDetectorpublic float getSpanSinceStartThreshold()
public void setSpanSinceStartThreshold(float spanSinceStartThreshold)
We encourage to set those values from dimens to accommodate for various screen sizes.
spanSinceStartThreshold - delta span thresholdpublic void setSpanSinceStartThresholdResource(@DimenRes
int spanSinceStartThresholdDimen)
spanSinceStartThresholdDimen - delta span thresholdpublic void setSpanSinceStartThresholdResource(java.lang.String spanSinceStartThresholdDimen)
public float getScaleFactor()
ScaleGestureDetector.getScaleFactor()