title: textview centered on rectangle
body: <p>I want to draw text on a rectangle using xml. I want the text centered on the rectangle. Both the rectangle and text are inside a gridlayout for a reason.</p>
  
  <pre><code>&lt;GridLayout
          android:id="@+id/daily"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:columnCount="3"
          android:orientation="horizontal"
          android:rowCount="1" &gt;
  
          &lt;TextView android:background="@drawable/green_rect_small" /&gt;
  
          &lt;Space android:layout_width="3dp" /&gt;
  
          &lt;RelativeLayout&gt;
  
              &lt;View
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:background="@drawable/green_rect_large" /&gt;
  
              &lt;TextView
                  android:id="@+id/daily_readings"
                  android:background="@drawable/green_rect_large"
                  android:text="@string/daily_readings"
                  android:textColor="@color/white"
                  android:textSize="40sp" /&gt;
          &lt;/RelativeLayout&gt;
  &lt;/GridLayout&gt;
  </code></pre>
  
  <p>I can't get it done whether I set the rectangle as the bg of the text view or as a seperate view. Where am I wrong?</p>