
I inflate R.layout.station_spinner_row which is my row layout that I want. setDropDownViewResource(android.R.layout.simplespinnerdropdownitem) Spinner sItems (Spinner) findViewById(R.id.spinner1) tAdapter(adapter). This is probably why the layout for my spinner rows is looking the way they do. setDropDownViewResource is a custom Style for DropDown R.Layout. toString().Īdapter = new SpinnerArrayAdapter(getActivity(), android.R.layout.simple_spinner_item,įor some reason I HAVE to use a id to a textview when I initialise the adapter and all example I have seen uses: android.R.layout.simple_spinner_item

My spinner prompt shows correct layout, spinner_row.xml but when I open the spinner, it only shows the text from my custom class.


Hi, I am using a custom adapter to populate a spinner with a specific row layout.
