Most visited

Recently visited

ScaleGestureDetectorCompat

public final class ScaleGestureDetectorCompat
extends Object

java.lang.Object
   ↳ android.support.v4.view.ScaleGestureDetectorCompat


助手访问API级别19(KitKat)后向兼容方式引入的 ScaleGestureDetector功能。

Summary

Public methods

static boolean isQuickScaleEnabled(Object scaleGestureDetector)

返回用户执行双击然后滑动的快速缩放手势是否应执行缩放。

static void setQuickScaleEnabled(Object scaleGestureDetector, boolean enabled)

设置关联的 OnScaleGestureListener是否应在用户执行双击后接着进行滑动时收到onScale回调。

Inherited methods

From class java.lang.Object

Public methods

isQuickScaleEnabled

boolean isQuickScaleEnabled (Object scaleGestureDetector)

返回用户执行双击然后滑动的快速缩放手势是否应执行缩放。 setQuickScaleEnabled(Object, boolean).

Parameters
scaleGestureDetector Object
Returns
boolean

setQuickScaleEnabled

void setQuickScaleEnabled (Object scaleGestureDetector, 
                boolean enabled)

设置关联的OnScaleGestureListener是否在用户执行双击后接着进行滑动时收到onScale回调。 请注意,如果应用定位到API 19和更新版本,则默认情况下会启用此功能。

Parameters
scaleGestureDetector Object
enabled boolean: true to enable quick scaling, false to disable