源码

首页 » 归档 » 源码 » android – 我怎么知道EditText什么时候失去焦…

android – 我怎么知道EditText什么时候失去焦…


当EditText失去焦点时我需要抓住,我已经搜索了其他问题,但我找不到答案.

我像这样使用OnFocusChangeListener

OnFocusChangeListener foco = new OnFocusChangeListener() {

    @Override
    public void onFocusChange(View v, boolean hasFocus) {
        // TODO Auto-generated method stub

    }
};

但是,它对我不起作用.

(0)

本文由 投稿者 创作,文章地址:https://blog.isoyu.com/archives/android-wozenmezhidaoedittextshenmeshihoushiqujiao.html
采用知识共享署名4.0 国际许可协议进行许可。除注明转载/出处外,均为本站原创或翻译,转载前请务必署名。最后编辑时间为:9 月 18, 2019 at 11:33 上午

热评文章