title: How to put a TEXTVIEW center on a IMAGEVIEW in Android Layout
body: <p>I would like to know, how I can a put a text center on a image, here is the sample image,</p>
  
  <p><img src="https://i.stack.imgur.com/bdUHN.png" alt="enter image description here"></p>
  
  <p>I tried the below code, but its not working fine,</p>
  
  <pre><code>&lt;LinearLayout
      android:layout_width="100dip"
      android:layout_height="fill_parent"
      android:layout_marginRight="5dip"
      android:gravity="center"
      android:orientation="vertical" &gt;
      &lt;TableLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"&gt;
  
          &lt;TableRow 
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"&gt;
  
              &lt;TextView
                  android:id="@+id/points"
                  android:layout_width="wrap_content"
                  android:layout_height="match_parent"
                  android:gravity="center_vertical"
                  android:text="+2"
                  android:textColor="#fff"
                  android:textSize="16sp" /&gt;
  
              &lt;ImageView
                  android:id="@+id/btbt"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:src="@drawable/btbt" /&gt;
           &lt;/TableRow&gt;
      &lt;/TableLayout&gt;      
  &lt;/LinearLayout&gt; 
  </code></pre>
  
  <p>Please let me know a good solution.</p>