LinkVisual Media SDK(Android) v2.7.0-ilop
|
A textureView can zoom and translate the content with the gesture.Support Double tap/ Drag / zoom with two fingers. More...
Classes | |
interface | OnViewEdgeListener |
interface | OnZoomableTextureListener |
Public Member Functions | |
ZoomableTextureView (Context context) | |
ZoomableTextureView (final Context context, final AttributeSet attrs) | |
ZoomableTextureView (Context context, AttributeSet attrs, int defStyle) | |
void | setMaxScale (float scale) |
float | getMaxScale () |
float | getMinScale () |
void | setOnZoomableTextureListener (OnZoomableTextureListener listener) |
void | setOnViewEdgeListener (OnViewEdgeListener listener) |
void | onRestoreInstanceState (Parcelable state) |
void | zoomOut (boolean smooth) |
void | setZoomScale (boolean smooth, float scale) |
float | getScale () |
boolean | onTouchEvent (MotionEvent motionEvent) |
Static Public Attributes | |
static final String | TAG = "ZoomableTextureView" |
Protected Member Functions | |
Parcelable | onSaveInstanceState () |
A textureView can zoom and translate the content with the gesture.Support Double tap/ Drag / zoom with two fingers.
|
inline |
获取缩放比例上限
|
inline |
获取缩放比例下限
|
inline |
获取当前缩放比, 未放缩时为1.0f
|
inline |
设置放大倍数上限 默认为4倍
scale | 倍数 |
|
inline |
设置边缘触发监听器
listener |
|
inline |
设置监听器
listener |
|
inline |
设置指定的缩放比
smooth | 是否平滑变化 |
scale | 目标缩放比 |
|
inline |
缩放比重置为1
smooth | 是否平滑变化 |