接口 OnPhotoTapListener


  • public interface OnPhotoTapListener
    Interface definition for a callback to be invoked when the Photo is tapped with a single tap.
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      void onPhotoTap​(android.view.View view, float x, float y)
      A callback to receive where the user taps on a photo.
    • 方法详细资料

      • onPhotoTap

        void onPhotoTap​(android.view.View view,
                        float x,
                        float y)
        A callback to receive where the user taps on a photo. You will only receive a callback if the user taps on the actual photo, tapping on 'whitespace' will be ignored.
        参数:
        view - - View the user tapped.
        x - - where the user tapped from the of the Drawable, as percentage of the Drawable width.
        y - - where the user tapped from the top of the Drawable, as percentage of the Drawable height.