3
ArrayList valforspinner=new ArrayList();
ArrayAdapter<String> adapter=null;
spinner = (Spinner) findViewById(R.id.Spinner01);
adapter = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item, Printers);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(adapter);
new Thread(new Runnable() {
public void run() {
valforspinner= GetList.List(myPrefs.getString("IP", ""));
adapter.notifyDataSetChanged();
}}).start();
當結果出現在數組列表中時,即數值仍然是微調框仍然是空的?notifyDataSetChanged不工作?
太糟糕了,這在文檔中沒有提到。 – greg7gkb 2012-08-22 19:16:44