Esempio n. 1
0
        void OnFocusChange(object?sender, global::Android.Views.View.FocusChangeEventArgs e)
        {
            if (TypedNativeView == null)
            {
                return;
            }

            if (e.HasFocus)
            {
                if (TypedNativeView.Clickable)
                {
                    TypedNativeView.CallOnClick();
                }
                else
                {
                    OnClick(TypedNativeView, EventArgs.Empty);
                }
            }
            else if (_dialog != null)
            {
                _dialog.Hide();
                TypedNativeView.ClearFocus();
                _dialog = null;
            }
        }