Beispiel #1
0
        protected override void OnAttached()
        {
            if (Container == null)
            {
                return;
            }

            _clickOverlay            = ViewOverlayCollector.Add(Container, this);
            _clickOverlay.Click     += ViewOnClick;
            _clickOverlay.LongClick += ViewOnLongClick;
        }
Beispiel #2
0
        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();
        }