当前位置:网站首页>In the fragment, the input method is hidden after clicking the confirm cancel button in the alertdialog (this is valid after looking for it on the Internet for a long time)

In the fragment, the input method is hidden after clicking the confirm cancel button in the alertdialog (this is valid after looking for it on the Internet for a long time)

2022-06-26 09:55:00 Graffiti CC

    private void hideKeyBord(){
    
        InputMethodManager inputMgr = (InputMethodManager) getContext()
                .getSystemService(Context.INPUT_METHOD_SERVICE);
        inputMgr.toggleSoftInput(InputMethodManager.HIDE_NOT_ALWAYS, 0);
    }
原网站

版权声明
本文为[Graffiti CC]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202170549001577.html