From dc31d5f92300a76342c3b96cc9c115c37b750f27 Mon Sep 17 00:00:00 2001 From: mohsinraza Date: Wed, 30 Apr 2014 12:52:10 +0500 Subject: [PATCH] show the arrowed rectangle at start for user guidance that the image can be zoomed In/Out --- .../janmuller/android/simplecropimage/HighlightView.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/simple-crop-image-lib/src/eu/janmuller/android/simplecropimage/HighlightView.java b/simple-crop-image-lib/src/eu/janmuller/android/simplecropimage/HighlightView.java index 2e973a9..54a273a 100644 --- a/simple-crop-image-lib/src/eu/janmuller/android/simplecropimage/HighlightView.java +++ b/simple-crop-image-lib/src/eu/janmuller/android/simplecropimage/HighlightView.java @@ -37,6 +37,11 @@ class HighlightView { public static final int GROW_TOP_EDGE = (1 << 3); public static final int GROW_BOTTOM_EDGE = (1 << 4); public static final int MOVE = (1 << 5); + + + /** When {@true} show the arrowed rectangle at start for user guidance + * that the image can be zoomed In/Out*/ + private boolean GROW_AT_START = true; public HighlightView(View ctx) { @@ -132,7 +137,8 @@ protected void draw(Canvas canvas) { canvas.drawPath(path, mOutlinePaint); - if (mMode == ModifyMode.Grow) { + if (mMode == ModifyMode.Grow || GROW_AT_START) { + GROW_AT_START = false; if (mCircle) { int width = mResizeDrawableDiagonal.getIntrinsicWidth(); int height = mResizeDrawableDiagonal.getIntrinsicHeight();