I realize even I use wrap_content
for my spinner (I avoid using match_parent
as I do not want the spinner overly long), and using match_parent
Put your TextView inside LineanLayout in Spinner Item XML,
And Pass your TextView's id to custom adapter constructor
CustomAdapter adapter = new CustomAdapter(this,R.layout.spinner_item,R.id.text_view_0,arraylist);
Constructor
public CustomAdapter(Context context, int resource, int textViewId, ArrayList resultList) {
super(context, resource, textViewId, resultList);
...
...
}