示例#1
0
        public ChamEditText(Context context, IAttributeSet attrs, int defStyle)
            : base(context, attrs, defStyle)
        {
            ((Activity)Context).LayoutInflater.Inflate(LayoutId, this);
            var headerTextView = FindViewById <TextView> (Resource.Id.ChamHeader);
            var editText       = FindViewById <ClearableEditText> (EditTextId);

            ChamEditTextOwner            = new ChamEditTextOwner(headerTextView, editText, attrs, defStyle);
            editText.FocusChange        += editText_FocusChange;
            editText.AfterTextChangedEx += EditTextAfterTextChangedEx;
            editText.AfterTextChanged   += EditTextAfterTextChanged;
        }
示例#2
0
 public new bool RequestFocus()
 {
     return(ChamEditTextOwner.RequestFocus());
 }