public class ZoomerCompat
extends java.lang.Object
Scroller.| Constructor and Description |
|---|
ZoomerCompat(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortAnimation()
Aborts the animation, setting the current zoom value to the ending value.
|
boolean |
computeZoom()
Computes the current zoom level, returning true if the zoom is still active and false if the zoom has finished.
|
void |
forceFinished(boolean finished)
Forces the zoom finished state to the given value.
|
float |
getCurrZoom()
Returns the current zoom level.
|
void |
startZoom(float endZoom)
Starts a zoom from 1.0 to (1.0 + endZoom).
|
public void forceFinished(boolean finished)
abortAnimation(), the current zoom value isn't
set to the ending value.Scroller.forceFinished(boolean)public void abortAnimation()
Scroller.abortAnimation()public void startZoom(float endZoom)
Scroller.startScroll(int, int, int, int)public boolean computeZoom()
Scroller.computeScrollOffset()public float getCurrZoom()
Scroller.getCurrX()