使用 runOnUiThread在线程内更新UI

new Thread(new Runnable() {

    @Override

    public void run() {

        runOnUiThread(new Runnable() {

            @Override

            public void run() {

                mShow.setText("使用runOnUiThread更新ui线程");

            }

        });

    }

}).start();

posted @ 2019-11-09 11:50  @王新@  阅读(302)  评论(0编辑  收藏  举报