Vivek Vivek - 1 year ago 104
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
un-clickble
drop down list.

Using this

viewHolder.like.setEnabled(false);
viewHolder.like.setClickable(false);


my spinner set
unclickble
.

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