请问,为何以下代码也可以更新UI呢?
new Thread(){ @Override public void run() { try { Thread.sleep(6000); handler.sendEmptyMessage(65); } catch (InterruptedException e) { e.printStackTrace(); } } }.start();
new Thread(){ @Override public void run() { try { Thread.sleep(6000); handler.sendEmptyMessage(65); } catch (InterruptedException e) { e.printStackTrace(); } } }.start();
2019-08-04
举报