diff options
Diffstat (limited to 'org.fox.ttcomics/src/main/java/com/github/chrisbanes/photoview/OnViewTapListener.java')
-rw-r--r-- | org.fox.ttcomics/src/main/java/com/github/chrisbanes/photoview/OnViewTapListener.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/org.fox.ttcomics/src/main/java/com/github/chrisbanes/photoview/OnViewTapListener.java b/org.fox.ttcomics/src/main/java/com/github/chrisbanes/photoview/OnViewTapListener.java new file mode 100644 index 0000000..6856255 --- /dev/null +++ b/org.fox.ttcomics/src/main/java/com/github/chrisbanes/photoview/OnViewTapListener.java @@ -0,0 +1,16 @@ +package com.github.chrisbanes.photoview; + +import android.view.View; + +public interface OnViewTapListener { + + /** + * A callback to receive where the user taps on a ImageView. You will receive a callback if + * the user taps anywhere on the view, tapping on 'whitespace' will not be ignored. + * + * @param view - View the user tapped. + * @param x - where the user tapped from the left of the View. + * @param y - where the user tapped from the top of the View. + */ + void onViewTap(View view, float x, float y); +} |