Esempio n. 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);
        }