Spinner spin = (Spinner) findViewById(R.id.spinner);
//Creating the ArrayAdapter instance having the list
ArrayAdapter adapter = new ArrayAdapter(context, android.R.layout.simple_spinner_item, <list of values>);
aa.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
//Setting the ArrayAdapter data on the Spinner
spin.setAdapter(aa);
# 1 楼答案
可以使用相应的值向微调器添加适配器,如: