Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling Spinner in android

I'm having problems when using android:enabled="false", it's not disabling the component in the case it's a spinner. Don't know if it's relevant, but it belongs to a layout that's part of a viewflipper.

Any hints or workarounds ?

Thanks

like image 514
xain Avatar asked May 13 '11 00:05

xain


1 Answers

Disable or enable it before setting the adapter.

yourSpinner.setEnabled(false);    yourSpinner.setClickable(false);   yourSpinner.setAdapter(typeAdapter); 
like image 82
himb2001 Avatar answered Oct 04 '22 01:10

himb2001