alexvasilkov / GestureViews

ImageView and FrameLayout with gestures control and position animation
Apache License 2.0
2.37k stars 384 forks source link

how to trigger doubleTap in code #157

Closed hegelsu closed 3 years ago

hegelsu commented 4 years ago
  1. how to get current scale value in code?
  2. how to trigger doubleTap in code?
  3. how to disable animation?
ZhuSky commented 4 years ago

@hegelsu I found it possible to get through

  1. State state = controller.getState() state.getZoom()

alexvasilkov commented 3 years ago
  1. getController().getState().getXxx()
  2. getController().animateStateTo(getController().getStateController().toggleMinMaxZoom(state, x, y))
  3. Not sure what you mean by disabling animations. You can disable gestures with getController().getSettings().disableGestures().