public class PinchImageViewWrapper
extends java.lang.Object
implements android.view.View.OnTouchListener, android.view.View.OnLayoutChangeListener
Modifier and Type | Class and Description |
---|---|
static interface |
PinchImageViewWrapper.SingleTapListener
8/5/2017 - Used to decouple the single tap from the fmv Component.
|
Constructor and Description |
---|
PinchImageViewWrapper(android.widget.ImageView iv,
PinchImageViewWrapper.SingleTapListener stl)
Construct a PinchImageViewWrapper with the appropriate ImageView and an
optional single tap listener used currently by the FmvComponent to hide
controls.
|
Modifier and Type | Method and Description |
---|---|
void |
onLayoutChange(android.view.View v,
int left,
int top,
int right,
int bottom,
int oldLeft,
int oldTop,
int oldRight,
int oldBottom) |
boolean |
onTouch(android.view.View v,
android.view.MotionEvent event) |
void |
reset() |
public PinchImageViewWrapper(android.widget.ImageView iv, PinchImageViewWrapper.SingleTapListener stl)
iv
- the image view to wrap
***IMPORTANT*** - ImageView must have the following setting enabled in xml file
android:longClickable="true"stl
- the single tap listener to use during a single tap eventpublic void reset()
public void onLayoutChange(android.view.View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom)
onLayoutChange
in interface android.view.View.OnLayoutChangeListener
public boolean onTouch(android.view.View v, android.view.MotionEvent event)
onTouch
in interface android.view.View.OnTouchListener