1

enter image description here

No but in all seriousness, What i'm trying to do is make it so that the selection made by the user in the first spinner dictates the options available in the second.

I'm a little confused as to how to handle this. I'm thinking it would require some sort of listener since the selections could be changed at any time.

As an example lets say I had 2 spinners, the first has options "even numbers" and "odd numbers". If the user selects even numbers the second spinner displays options "2", "4", and "6". If the user selects odd numbers "1", "3", and "5" are selected.

cody
  • 735
  • 3
  • 11
  • 19

1 Answers1

1

Exactly, you need to assign a listener for the first spinner in you example. Check out this thread to check how to do that. In the onItemSelected() callback, you need to modify the contents of the second spinner accordingly. That is, modify the adapter assigned to it.

Community
  • 1
  • 1
Zsombor Erdődy-Nagy
  • 16,864
  • 16
  • 76
  • 101