title: Layout android insert images and text field
body: <p>How to achieve the following layout for a simple android application. I have images in drawable file with the size of 144 X 144 px. </p>
  
  <p><a href="https://i.stack.imgur.com/XmR2V.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XmR2V.png" alt="enter image description here"></a></p>
  
  <p><strong>To achieve the layout I tried using table layout but I am not particular about any layout but following is my code.</strong></p>
  
  <pre><code>&lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
           xmlns:tools="http://schemas.android.com/tools"
           android:orientation="vertical"
           android:layout_width="match_parent"
           android:layout_height="match_parent"
           android:id="@+id/table_view"&gt;
  
  &lt;TableRow
          android:layout_height="wrap_content"
          android:layout_width="fill_parent"
          android:gravity="center_horizontal"
          android:layout_span="3"&gt;
  
      &lt;TextView
              android:id="@+id/textView1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerHorizontal="true"
              android:layout_centerVertical="true"
              android:text="Heading"/&gt;
  &lt;/TableRow&gt;
  &lt;TableRow&gt;
      &lt;Button
              android:id="@+id/compliment_button"
              android:background="@drawable/imgOne"/&gt;
      &lt;Button
              android:id="@+id/feedback_button"
              android:background="@drawable/imgTwo"/&gt;
  &lt;/TableRow&gt;
  &lt;TableRow&gt;
      &lt;Button
              android:id="@+id/subscribe_button"
              android:background="@drawable/imgThree"/&gt;
  &lt;/TableRow&gt;
  &lt;TableRow
          android:layout_height="wrap_content"
          android:layout_width="fill_parent"
          android:gravity="center_horizontal"
          android:layout_span="3"&gt;
  
      &lt;TextView
              android:id="@+id/textView2"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerHorizontal="true"
              android:layout_centerVertical="true"
              android:text="New Layout"/&gt;
  &lt;/TableRow&gt;
  </code></pre>
  
  <p></p>
  
  <p>Using this code I got the following layout. I don't know what am I doing wrong. Also, image sizes are smaller than their normal sizes. I have <code>ldpi</code>, <code>mdpi</code>, <code>xdpi</code> and <code>xhdp</code> drawable folder, in all of them I have 144x144px images.</p>
  
  <p><a href="https://i.stack.imgur.com/D8DaN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D8DaN.png" alt="enter image description here"></a></p>
  
  <p>Thanks for your help in advance</p>