protected override void OnAttached() { if (Control is ListView || Control is ScrollView) { return; } View.Clickable = true; View.LongClickable = true; _viewOverlay = new FrameLayout(Container.Context) { LayoutParameters = new ViewGroup.LayoutParams(-1, -1), Clickable = false, Focusable = false, }; Container.LayoutChange += ViewOnLayoutChange; if (EnableRipple) { _viewOverlay.Background = CreateRipple(_color); } SetEffectColor(); TouchCollector.Add(View, OnTouch); Container.AddView(_viewOverlay); _viewOverlay.BringToFront(); }
protected override void OnAttached() { View.Clickable = true; View.LongClickable = true; View.SoundEffectsEnabled = true; TouchCollector.Add(View, OnTouch); }