spinner设置默认初始值
ArrayAdapter
(this, android.R.layout.simple_layout, /*here is your array list*/);
spinner.setAdapter(adapter);
int position = adapter.getPosition(/*here is some string in your array list*/);
spinner.setSelection(position , true);
分类: 技术