tags:

views:

45

answers:

1

Is it possible to display particular entries in a Spinner list as disabled? i.e. I want to always display a spinner with 4 entries (North, South, East and West, say), but I want to be able to disable any one of these so that is appears greyed out and not selectable.

Is this possible, or will I have to recreate the list each time, leaving out the invalid entries?

  • Frink
+1  A: 

Is this possible

It doesn't appear so. The way you would do that with ListView involves areAllItemsEnabled() and isEnabled(). However, those are methods on the ListAdapter interface, not the SpinnerAdapter interface. So, I suspect they will be ignored by a Spinner.

CommonsWare