public static class ScaleGestureDetector.SimpleOnScaleGestureListener extends Object implements ScaleGestureDetector.OnScaleGestureListener
ScaleGestureDetector.OnScaleGestureListener
but does nothing.
ScaleGestureDetector.OnScaleGestureListener.onScale(ScaleGestureDetector)
returns
false
so that a subclass can retrieve the accumulated scale
factor in an overridden onScaleEnd.
ScaleGestureDetector.OnScaleGestureListener.onScaleBegin(ScaleGestureDetector)
returns
true
.Constructor and Description |
---|
SimpleOnScaleGestureListener() |
Modifier and Type | Method and Description |
---|---|
boolean |
onScale(ScaleGestureDetector detector)
Responds to scaling events for a gesture in progress.
|
boolean |
onScaleBegin(ScaleGestureDetector detector)
Responds to the beginning of a scaling gesture.
|
void |
onScaleEnd(ScaleGestureDetector detector)
Responds to the end of a scale gesture.
|
public boolean onScale(ScaleGestureDetector detector)
ScaleGestureDetector.OnScaleGestureListener
onScale
in interface ScaleGestureDetector.OnScaleGestureListener
detector
- The detector reporting the event - use this to
retrieve extended info about event state.public boolean onScaleBegin(ScaleGestureDetector detector)
ScaleGestureDetector.OnScaleGestureListener
onScaleBegin
in interface ScaleGestureDetector.OnScaleGestureListener
detector
- The detector reporting the event - use this to
retrieve extended info about event state.public void onScaleEnd(ScaleGestureDetector detector)
ScaleGestureDetector.OnScaleGestureListener
ScaleGestureDetector.getFocusX()
and ScaleGestureDetector.getFocusY()
will return the location
of the pointer remaining on the screen.onScaleEnd
in interface ScaleGestureDetector.OnScaleGestureListener
detector
- The detector reporting the event - use this to
retrieve extended info about event state.Copyright © 2011–2014. All rights reserved.