protected override void OnAttached() { if (Container == null) { return; } _clickOverlay = ViewOverlayCollector.Add(Container, this); _clickOverlay.Click += ViewOnClick; _clickOverlay.LongClick += ViewOnLongClick; }
private void UpdateTapFeedbackColor() { _view = Control ?? Container; if (Control is Android.Widget.ListView) { //Except ListView because of Raising Exception OnClick return; } _viewOverlay = ViewOverlayCollector.Add(Container, this); if (EnableRipple) { AddRipple(); } else { _viewOverlay.Touch += OnTouch; } UpdateEffectColor(); }