How to set items from custom ArrayList
bviral opened this issue · comments
Hello Sir,
I am getting data directly from db so I am having that data in custom ArrayList not in string type ArrayList. I don't want to convert it in single column List so please tell me how to set items by specifying custom type arraylist column.
Is the issue fixed? Why is it closed?
Is the issue fixed? Why is it closed?
override bean's toString() function
and spinner set an adapter by android's spinner style
@OverRide
public String toString() {
return name;
}
spinner.setAdapter(new ArrayAdapter<>(context, android.R.layout.simple_spinner_item, List));