title: RelativeLayout gravity center not working
body: <p>I'm trying to horizontally center several views in a <code>RelativeLayout</code> that is a base.</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:gravity="center_horizontal"
      android:background="@android:color/transparent" &gt;
  </code></pre>
  
  <p>This isn't working. I have set <code>centerInParent</code> to <code>true</code> for one of the views and that did work. However, I can't use this solution because I have 2 views side by side that need to be centered together. Trying to optimize this so I want to avoid nesting layouts, especially Linear, inside of each other.</p>
  
  <p>Is there something obvious that I'm missing? I thought this attribute is made for this situation.</p>