new Thread(new Runnable() {
@Override
public void run() {
while (true) {
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
View rootview = MoviedetailActivity.this.getWindow().getDecorView();
View aaa = rootview.findFocus();
KLog.i(“tag—”, aaa.toString());
}
}
}).start();
Android TV获取当前焦点控件ID
最新推荐文章于 2021-11-11 23:20:30 发布