Android获取焦点所在控件 View vFocus=getWindow().getDecorView().findFocus(); if(vFocus instanceof EditText) { ((EditText) vFocus).setText("当前焦点"); }