Spinner
android.widget.Spinner
Folgendes Beispiel zeigt einen Spinner (ComboBox):
String[] items = {"Apfel", "Birne", "Pflaume"}; Spinner spinner = (Spinner) findViewById(R.id.myspinner); ArrayAdapter<String> adapterCat = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, items); spinner.setAdapter(adapterCat); spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) { } @Override public void onNothingSelected(AdapterView<?> arg0) { } });