title: How can I disable Spinner in Android and enable it on button click?
body: <p>I want disable my whole form including edittext and spinner and want to enable it when the user clicks on the edit form button.</p>
  
  <p>Code:</p>
  
  <pre><code> &lt;Spinner
                          android:background="@drawable/bg_spinner"
                          android:layout_width="match_parent"
                          android:layout_height="40dp"
                          android:enabled="false"
                          android:layout_marginRight="5dp"
                          android:id="@+id/etgen"
                          android:entries="@array/gender"
                          android:paddingRight="10dp"
                          android:paddingLeft="10dp"
                          android:layout_weight="1"/&gt;
  </code></pre>