KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a array list like this: private ArrayList<Locations> Artist_Result = new ArrayList<Location>(); This Location class has two properties: id and location . I need to bind my ArrayList to a spinner. I have tried it this way: Spinner s = (Spinner) findViewById(R.id.SpinnerSpcial); ArrayAdapter adapter = new ArrayAdapter(this,android.R.layout.simple_spinner_item, Artist_Result); s.setAdapter(adapter); However, it shows the object's hexadecimal value. So I think I have to set display the text and value for that spinner controller.
Tags (comma-separated)
Save Edits
Cancel