获取焦点
new Thread(new Runnable() {
@Override
public void run() {
while (true) {
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
View rootview = DetailActivity.this.getWindow().getDecorView();
View aaa = rootview.findFocus();
Log.i("tag", aaa.toString());
}
}
}).start();
网友评论