adapter = new ArrayAdapter(this, android.R.layout.simple_spinner_item, allCountries); adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); /* 将值新增至adapter */ adapter.add(newCountry); /* 取得新增的值的位置 */ int position = adapter.getPosition(newCountry); /* 将Spinner选取在新增的值的位置 */ mySpinner.setSelection(position); /* 移除mySpinner的值 */ adapter.remove(mySpinner.getSelectedItem().toString());