title: LinearLayout changing spinner's height unevenly
body: <p>I am using a spinner in my project and I upload your information from the database. So far so good, however, in execution the spinner always has its height greater than that of the other components. I looked for several situations here on the stack about how to distribute components equally, but my spinner is stubborn and it seems to me that something else is wrong.</p>
  
  <p>This is my layout file 
      </p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:layout_marginStart="5dp"
      android:layout_marginTop="5dp"
      android:layout_marginEnd="5dp"
      android:layout_marginBottom="5dp"
      android:orientation="vertical"&gt;
  
      &lt;TextView
          android:id="@+id/textView4"
          style="?android:textAppearanceSmall"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginTop="10dp"
          android:layout_marginBottom="10dp"
          android:text="@string/activity_registervalues_message" /&gt;
  
      &lt;EditText
          android:id="@+id/textview_valuespoint_pointname"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:autofillHints=""
          android:hint="@string/activity_registervalues_textview_point"
          android:inputType="textPersonName"&gt;&lt;/EditText&gt;
  
      &lt;Spinner
          android:id="@+id/spinner_valuespoint"
          style="?android:spinnerItemStyle"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"&gt;&lt;/Spinner&gt;
  
      &lt;EditText
          android:id="@+id/textview_valuespoint_pointvalue"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:autofillHints=""
          android:hint="@string/activity_registervalues_textview_value"
          android:inputType="none|numberDecimal"&gt;&lt;/EditText&gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_marginTop="10dp"
          android:orientation="horizontal"&gt;
  
          &lt;Button
              android:id="@+id/button_valuespoint_novo"
              style="?android:textAppearanceSmall"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:text="@string/activity_registervalues_button_novo"&gt;&lt;/Button&gt;
  
          &lt;Button
              android:id="@+id/button_valuespoint_save"
              style="?android:textAppearanceSmall"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:text="@string/activity_registervalues_button_salvar"&gt;&lt;/Button&gt;
  
          &lt;Button
              android:id="@+id/button_valuespoint_close"
              style="?android:textAppearanceSmall"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:text="@string/activity_registervalues_button_fechar" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;ListView
          android:id="@+id/listview_valuespoint"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"&gt;
      &lt;/ListView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Styles.xml</p>
  
  <pre><code>&lt;resources&gt;
      &lt;style name="AppTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar"&gt;
          &lt;item name="textAppearanceFinish"&gt;@style/TextAppearanceFinish&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="WizardTheme" parent="android:Theme.Holo.Light.DarkActionBar"&gt;
          &lt;item name="textAppearanceFinish"&gt;@style/TextAppearanceFinish&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="TextAppearanceFinish" parent="android:TextAppearance.Holo.Medium"&gt;
          &lt;item name="android:textColor"&gt;#fff&lt;/item&gt;
      &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>In the java class, I have the adapter</p>
  
  <pre><code>public ArrayAdapter createArrayAdapter() {
      ArrayAdapter spinnerArrayAdapter = new ArrayAdapter(this,
              android.R.layout.simple_spinner_dropdown_item,
              getSelectedAttributeList()); 
  
      return spinnerArrayAdapter;
  }
  </code></pre>
  
  <p>Why does the height of the spinner change?</p>
  
  <p>EDIT: The screens </p>
  
  <p>Screen in project time</p>
  
  <p><a href="https://i.stack.imgur.com/4xG2M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4xG2M.png" alt="Project time"></a></p>
  
  <p>Screen in execution</p>
  
  <p><a href="https://i.stack.imgur.com/IJzoA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IJzoA.png" alt="Execution time"></a></p>
  
  <p>As you can see, in project time the space is equally divided, but in execution time it's possible to see a difference</p>