Vivek Vivek - 2 years ago 142
Android Question

How to enable / disable drop down list of Spinner

I created a spinner and its working fine.

All I want is that when i click on spinner it show

drop down
that's it. I want
drop down list.

Using this;;

my spinner set

If anyone need more detail about spinner I can post more details. Suggestions are welcome.

Answer Source

You simply need to override isEnabled and disable that position by return false else return true. You can override the same method where you have override getDropDownView method

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download