为什么某些ui更新可以在特殊情况下在Non_UI线程上运行? 例如:某些ui更新可以在特殊情况下在Non_UI线程上运行
Textview textView;
public void onCreate(Bundle savedInstanceState) {
textView = (TextView) findViewById(R.id.my_text);
new Thread() {
textView.setText("i can change the textview's text");
}.start();
}
我很困惑,当机器人到检查UI动作是在UI线程上运行?一段时间之后?
对不起,我错过了运行方法。但新的线程(){ public void run(){ textView.setText(“我可以改变textview的文本”); } } .start();但是这也是罚款。 – asfman 2011-06-09 11:59:12