[Solved] Layout Designing – Android


In this i used a table layout to achieve your requirement…..In src you place your image from drawable…

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

<RelativeLayout
 android:layout_width="fill_parent"
 android:layout_height="150dp" >

 <TextView
 android:layout_width="fill_parent"
 android:layout_height="fill_parent"
 android:background="#c8c8c8" />
</RelativeLayout>

<TableRow
android:id="@+id/tableRow1"
android:layout_width="match_parent"
android:layout_height="wrap_content" >

<ImageView
 android:id="@+id/TextView04"
 android:layout_weight="1"
 android:background="#dcdcdc"
 android:gravity="center"
 android:padding="20dip"
 android:text="Row 2 column 1"
 android:textColor="#000000" 
 android:src="https://stackoverflow.com/questions/37128554/@drawable/swara"/>

<ImageView
android:id="@+id/TextView04"
android:layout_weight="1"
android:background="#d3d3d3"
android:gravity="center"
android:padding="20dip"
android:text="Row 2 column 2"
android:textColor="#000000" 
android:src="https://stackoverflow.com/questions/37128554/@drawable/swara"/>  </TableRow>

solved Layout Designing – Android