Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/216.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 调用TextView.setText()时更新所有UI_Android_Multithreading_Handler - Fatal编程技术网

Android 调用TextView.setText()时更新所有UI

Android 调用TextView.setText()时更新所有UI,android,multithreading,handler,Android,Multithreading,Handler,当从线程处理程序调用setTextString时,android更新了所有UI小部件。e、 g.在listview适配器中调用getView handler.post(new Runnable() { @Override public void run() { if (mCurrentTime != null)

当从线程处理程序调用setTextString时,android更新了所有UI小部件。e、 g.在listview适配器中调用getView

handler.post(new Runnable() {
                        @Override
                        public void run() {
                            if (mCurrentTime != null)
                                mCurrentTime.setText(time);
                        }
                    });
用于显示当前音频进度


如何在没有更新适配器的情况下更新textview?

textview是一个itemrow还是listView行内的项目?否。活动上的textview。不在列表项中