public bool OnGesture(Android.Glass.Touchpad.Gesture gesture) { _lastGesture.Text = gesture.Name(); if (gesture == Gesture.SwipeDown) { if (!_swipedDownOnce) { _swipeAgainTip.Animate().Alpha(1.0f); _swipedDownOnce = true; return true; } else { return false; } } else { return true; } }
private static bool IsSupportedScaleType( Android.Widget.ImageView.ScaleType scaleType) { if (null == scaleType) { return false; } if (scaleType.Name().Equals(Android.Widget.ImageView.ScaleType.Matrix.Name())) { throw new Java.Lang.IllegalArgumentException(scaleType.Name() + " is not supported in PhotoView"); } else { return true; } }