title: Horizontally center TextView inside ImageView
body: <p>How to horizontally center TextView inside ImageView?
  Currently is positioned in the lower right corner of ImageView.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;ImageView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:id="@+id/imageView"
          android:background="@drawable/img" /&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:id="@+id/textView"
          android:layout_alignBottom="@+id/imageView"
          android:layout_alignRight="@+id/imageView"
          android:layout_alignEnd="@+id/imageView" /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>