简体   繁体   English

MonoDroid OnFocusChangeListener

[英]MonoDroid OnFocusChangeListener

I have only been working with android app development for a few days so please pardon my ignorance. 我只从事了android应用开发几天,所以请原谅我的无知。 I am trying to set up a listener for an EditText that will fire after the field has lost focus. 我正在尝试为EditText设置侦听器,该编辑器将在字段失去焦点后触发。 I have found a few examples in java, but can't find one for monodroid. 我在Java中找到了一些示例,但找不到一个适用于Monodroid的示例。 How do I set this up? 我该如何设置?

You can use the FocusChange event: 您可以使用FocusChange事件:

editText.FocusChange += (object sender, View.FocusChangeEventArgs e) =>
                        {
                            // do stuff
                        };

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM