您可以尝试从您选择的第一个微调器中获取位置,然后在基于该位置检索适当的数组之后填充第二个微调器。
您必须聆听第一个适配器的更改:
spinner. setonItemSelectedListener(new MyonItemSelectedListener());class MyonItemSelectedListener implements onItemSelectedListener { public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) { String choice = parent.getItemAtPosition(pos).toString(); populateSecondSpinnerMethod(choice) } } public void onNothingSelected(AdapterView parent) { // Do nothing. }}


