Inheritance: Java.Lang.Object, ITextWatcher
Beispiel #1
0
        protected override View GetViewImpl(Context context, ViewGroup parent)
        {
            var view = DroidResources.LoadStringEntryLayout(context, parent, LayoutName);

            if (view != null)
            {
                view.FocusableInTouchMode = false;
                view.Focusable            = false;

                TextView label;
                EditText _entry;
                DroidResources.DecodeStringEntryLayout(context, view, out label, out _entry);

                if (_entry != null)
                {
                    view.Clickable = Clickable;
                    view.Click    += (sender, args) => _entry.RequestFocus();

                    _entry.FocusableInTouchMode = true;
                    _entry.Focusable            = true;
                    _entry.Clickable            = Clickable;
                    var helper = EntryElementHelper.EnsureTagged(_entry);
                    helper.Owner = this;
                }
            }

            return(view);
        }
Beispiel #2
0
 public static EntryElementHelper EnsureTagged(EditText editText)
 {
     var tag = (EntryElementHelper) editText.Tag;
     if (tag == null)
     {
         tag = new EntryElementHelper(editText);
         editText.Tag = tag;
     }
     return tag;
 }
Beispiel #3
0
        public static EntryElementHelper EnsureTagged(EditText editText)
        {
            var tag = (EntryElementHelper)editText.Tag;

            if (tag == null)
            {
                tag          = new EntryElementHelper(editText);
                editText.Tag = tag;
            }
            return(tag);
        }