title: Center a TextView inside another View in Android Relative Layout
body: <p>In my relative layout, I have a circle View and a TextView. I would like to center the TextView exactly within the circle View. How do I do that? The code I have so far is below:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
  
      &lt;View
          android:id="@+id/firstCircle"
          android:layout_width="24dp"
          android:layout_height="24dp"
          android:layout_marginLeft="24dp"
          android:layout_marginTop="24dp"
          android:background="@drawable/circle" /&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="1"
          android:id="@+id/number1" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>I want the final result to look like:</p>
  
  <p><a href="http://i.stack.imgur.com/oQWmA.png" rel="nofollow">Screenshot</a></p>