1:查找获取到焦点的view
Runnable run2 = new Runnable() { @Override public void run() { while (true) { try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } View rootview = FormatOperationActivity.this.getWindow().getDecorView(); View aaa = rootview.findFocus(); Log.d(TAG, aaa.toString()); } } };