获取焦点的view对象 View view=getWindow().getDecorView().findFocus(); 如果是EditText if(view instanceof EditText) { ((EditText) view).setText("当前焦点"); } 以上来自网络