title: Inserting a textview in the middle of a imageview android
body: <p>I need to put a text view in the middle of a imageview so i have this code</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/row_background"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content" &gt;
  
  &lt;TextView
      android:id="@+id/menu_label"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:lines="1" /&gt;
  
  &lt;ImageView
      android:id="@+id/menu_icon"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentRight="true"
      android:layout_centerInParent="true"
      android:layout_marginBottom="@dimen/menu_icon_margin_top_bottom"
      android:layout_marginRight="@dimen/menu_icon_margin_right"
      android:layout_marginTop="@dimen/menu_icon_margin_top_bottom" /&gt;
  
  &lt;TextView
      android:id="@+id/notif_number"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignBottom="@id/menu_icon"
      android:layout_alignLeft="@id/menu_icon"
      android:layout_alignRight="@id/menu_icon"
      android:layout_alignTop="@id/menu_icon"
      android:lines="1"
      android:text="69"
      android:textColor="@android:color/white" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>and i need the last textview to be always in center of the menu_icon ImageView but my methdot doesnt work it just puts it in the top left corner.</p>