标签:io os java for sp on 问题 ad bs
问题描述final TextView textbox = (TextView) findViewById(R.id.display_number); for(int i = 0; i <li.size();i++) { int k = li.get(i); String strI = Integer.toString(k); textbox.setText(strI); try { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
private Handler mHandler = new Handler(){ @Override public void handleMessage(Message msg) { switch(msg.what) { case UPDATE_TEXTVIEW: textbox.setText(strI); break; } super.handleMessage(msg); } };
Message msg = new Message(); msg.what = UPDATE_TEXTVIEW; mHandler.sendMessageDelayed(msg, 1000);
标签:io os java for sp on 问题 ad bs
原文地址:http://www.cnblogs.com/qibileiru/p/4027473.html