void StartRipple(float x, float y) { if (effect?.IsDisabled ?? true) { return; } if (!effect.NativeAnimation) { return; } if (effect.CanExecute) { UpdateRipple(effect.NativeAnimationColor); if (rippleView != null) { rippleView.Enabled = true; rippleView.BringToFront(); ripple?.SetHotspot(x, y); rippleView.Pressed = true; } else if (IsForegroundRippleWithTapGestureRecognizer) { ripple?.SetHotspot(x, y); View.Pressed = true; } } else if (rippleView == null) { UpdateRipple(XColor.Transparent); } }
private bool StartRipple(float x, float y) { if (_effect.NativeAnimation && _viewOverlay.Background is RippleDrawable) { _viewOverlay.BringToFront(); _ripple.SetHotspot(x, y); _viewOverlay.Pressed = true; return(true); } return(false); }
void StartRipple(float x, float y) { if (effect?.IsDisabled ?? true) { return; } if (effect.CanExecute && effect.NativeAnimation && viewOverlay?.Background is RippleDrawable) { UpdateRipple(); viewOverlay.BringToFront(); ripple.SetHotspot(x, y); viewOverlay.Pressed = true; } }
void StartRipple(float x, float y) { if (effect?.IsDisabled ?? true) { return; } if (effect.CanExecute && effect.NativeAnimation && rippleView != null) { UpdateRipple(); rippleView.Enabled = true; rippleView.BringToFront(); ripple?.SetHotspot(x, y); rippleView.Pressed = true; } }