Пример #1
0
        public override bool OnTouchEvent(MotionEvent e)
        {
            if (GetCompoundDrawables()[2] != null)
            {
                var tappedX = e.GetX() > (Width - PaddingRight - xDrawable.IntrinsicWidth);

                if (tappedX)
                {
                    if (e.Action == MotionEventActions.Up)
                    {
                        Text = string.Empty;

                        if (listener != null)
                        {
                            listener.DidClearTextBox();
                        }
                    }
                    return(true);
                }
            }
            return(true);
        }