How can I use more than one spinner in Android?

How can I use more than one spinner in Android?
Answer
You could share the adapter between different Spinner s if they adapted the same information. Clearly each of your adapters need to adapt a different set of String s, so you need to create an ArrayAdapter for each Spinner . A single OnItemSelectedListener will work for the 3 Spinners (as long as you set them).
 

Tìm kiếm

Back
Top