title: Android select options menu
body: <p>I am using this code for making option menu in android: </p>
  
  <pre><code>    gender1 = (Spinner) findViewById(R.id.spinner1);
      List&lt;String&gt; list1 = new ArrayList&lt;String&gt;();
      list1.add("Gender");
      list1.add("Male");
      list1.add("Female");
  
      ArrayAdapter&lt;String&gt; dataAdapter1 = new ArrayAdapter&lt;String&gt;(this,
              android.R.layout.simple_spinner_item, list1);
      dataAdapter1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
      gender1.setAdapter(dataAdapter1);
  </code></pre>
  
  <p>And the xml: </p>
  
  <p>
  
  <pre><code>        android:id="@+id/spinner1"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_marginBottom="10dp"
          android:background="@color/input_register_bg"
          android:padding="10dp"
          android:spinnerMode="dropdown"
          android:textColor="@color/input_login_hint"
          android:popupBackground="@color/input_login_hint"
          android:dropDownVerticalOffset="20dp"
          android:clickable="false" /&gt;
  </code></pre>
  
  <p>My problem is that it works on emulator and doesn't work on my phone. When I click on it, it never shows items but in emulator it works fine.</p>