I want put one TextView at left upper corner(0,0), one TextView at right upper corner(0,1) and LinearLayout below at the bottom (1,0 and 1,1). I tried like
<RelativeLayout
android:id="@+id/rlHeader"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<TextView
android:id="@+id/txtLowerBound"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:text=" "
>
</TextView>
<TextView
android:id="@+id/txtUpperBound"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
>
</TextView>
<LinearLayout
android:id="@+id/llRatingNumbers"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_alignParentTop="true"
android:layout_gravity="bottom"
android:gravity="bottom"
android:layout_below="@id/txtUpperBound"
android:layout_alignParentBottom="true"
></LinearLayout>
</RelativeLayout>
but it displays all in one row. What to change to have two rows, in upper two TextViews and in the lowetr LinearLayout ?
try this for your linearLayout.