title: How to align spinner view inside RelativeLayout in Android?
body: <p>Im trying to center a spinner inside of a relative layout.
  my attempt is as follows:</p>
  
  <pre><code>&lt;LinearLayout
          android:orientation="horizontal"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_gravity="center"&gt;
  
          &lt;Spinner
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:id="@+id/typesSpinner"/&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>This works well for me in other cases, but not with spinner.
  Why?</p>