<CC.CustomEditText
android:id="@+id/receptionIdentityArticle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:theme="@style/ExtendProTheme"
android:maxLength="20"
style="@style/ExtendProTheme.EditText"
android:layout_below="@+id/suppliersSearchInputLabel"
local:MvxBind=" Text ArticleSearchClause, Mode=TwoWay; EnterCommand SearchArticlesCommand; Error Errors['ArticleSearchClause']; Click OnSearchClickCommand" />
所以我有一个CustomEdit通过重写两个事件Mvvmcross绑定仅单击焦点后
this.KeyPress += OnEnterKeyPressed;
this.FocusChange += OnFocusChange;
我的问题是,单击命令只触发第二次是从EditText上不同的我点击的EditText触发。第一次它只是聚焦,然后第二次点击命令触发点击它。我想这是它应该如何工作,但我想赶上第一次点击它在EditText上完成。另一个事件可能会被触发,但是我无法在EditText上找到所有可能绑定的文档。任何想法如何捕获第一次点击EditText?
我会试一下。谢谢! – CiucaS