Question ans to ur: u not using adapter correctly: -
android.R.simple_spinner_adapter must be android.R.layout.simple_spinner_item
A sample for this may be: -
Spinner spinner = (Spinner) findViewById(R.id.font_spinner); ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource( this, R.array.font_array,android.R.layout.simple_spinner_item); adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); spinner.setAdapter(adapter);
check the usage as above, this is the sample used in my code ... !!!!
source share