I want to design this layout in Android XML

i wrote the xml and works fine without putting “TEXT VIEW 2” code.
This is my XML file without putting TEXT VIEW 2 :-
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/txtbackground"
>
<RelativeLayout
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:id="@+id/header"
>
<!-- This is TEXTVIEW 1 -->
<TextView
android:id="@+id/TEXTVIEW1"
android:text="ITEM"
android:layout_alignParentRight="true"
android:background="@drawable/txtbackground"
android:layout_alignTop="@+id/list_image"
android:layout_toRightOf="@+id/list_image"
android:layout_width="wrap_content"
android:textSize="18dip"
android:layout_height="100dip"
android:textColor="#000000"
android:textStyle="bold"
/>
<ImageView
android:id="@+id/list_image"
android:layout_alignParentLeft="true"
android:layout_width="100dip"
android:layout_height="100dip"
android:src="@drawable/image"
/>
</RelativeLayout>
<!-- WebView -->
<LinearLayout android:id="@+id/thumbnail"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="0dip"
android:layout_below="@+id/header"
android:layout_marginTop="5dip"
>
<WebView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webkit"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
/>
</LinearLayout>
</RelativeLayout>
Can anyone plz suggest me where should i put TEXTVIEW2 code which works like my given graphical layout image.
Code for TEXTVIEW 2 is same as TEXTVIEW 1:-
<!-- This is TEXTVIEW 2 -->
<TextView
android:id="@+id/TEXTVIEW2"
android:text="ITEM"
android:layout_alignParentRight="true"
android:background="@drawable/txtbackground"
android:layout_alignTop="@+id/list_image"
android:layout_toRightOf="@+id/list_image"
android:layout_width="wrap_content"
android:textSize="18dip"
android:layout_height="100dip"
android:textColor="#000000"
android:textStyle="bold"
/>
Thanks in Advance.
1 Answer