is it possible to set a relativelayout array as items for spinner?
RelativeLayout[] items = new RelativeLayout[]{dep1.createObj(getContext()), dep2.createObj(getContext())};
ArrayAdapter<RelativeLayout> adapter = new ArrayAdapter<>(getContext(), android.R.layout.simple_spinner_dropdown_item, items);
_deposit.setAdapter(adapter);
i'm getting this as an output:
I would like to use the relativelayout because the object i want to display contains two strings to be displayed with left and right alignment