Xamarin.Andorid 监听 EditText 回车事件
作者:互联网
EditText ET_Billcode.EditorAction += ET_Billcode_EditorAction; //执行方法 private void ET_Billcode_EditorAction(object sender, TextView.EditorActionEventArgs e) { if (e.Event == null && e.ActionId != ImeAction.Done) { return; } if ((e.Event?.Action == KeyEventActions.Down && e.Event?.KeyCode == Keycode.Enter) || e.ActionId == ImeAction.Done) { } }
标签:Xamarin,EditorAction,EditText,Billcode,ActionId,Andorid,ET,Event 来源: https://www.cnblogs.com/LuoCore/p/16458167.html