View vFocus=getWindow().getDecorView().findFocus(); if(vFocus instanceof EditText) { ((EditText) vFocus).setText("当前焦点"); }
View vFocus=getWindow().getDecorView().findFocus(); if(vFocus instanceof EditText) { ((EditText) vFocus).setText("当前焦点"); }
转载于:https://www.cnblogs.com/l2rf/p/4128716.html