title: Android: Horizontal Center Align for Radio Group
body: <p>I have Radio Group which appears left aligned on screen. <br>
  <strong><em>How can i horizontally center the radio group.</em></strong> <br>
  The TextView itself appears properly center-aligned horizontally.</p>
  
  <pre><code>....
          &lt;LinearLayout
              android:id="@+id/LinearLayout02"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              &gt;
  
              &lt;TextView
                  android:id="@+id/text1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_weight="1"
                  android:gravity="center_horizontal"
                  android:text="Test"
                  /&gt;
  
  
          &lt;RadioGroup
              android:id="@+id/radioGroupMode"
              android:layout_width="match_parent"
              android:layout_height="wrap_content" 
              android:layout_gravity="center_horizontal"  
              android:gravity="center_horizontal" &gt;
  
              &lt;RadioButton
                  android:id="@+id/radioTestMode"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:checked="true"
                  android:tag="OPTION_1"
                  android:text="Option1"
               /&gt;
  
              &lt;RadioButton
                  android:id="@+id/radioLearnMode"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:tag="Option_2"
                  android:text="Option 2"
               /&gt;
          &lt;/RadioGroup&gt;
  
  &lt;/LinearLayout&gt;
  ....
  </code></pre>