I have a problem with a relative layer where its children could use layout_below and layout_weight to set its percentage height.
For example, we have a relative layout, and inside it we have three linear layouts with textual representations. Now I would like to set 25.50.25% of the height of the total height of the relative layout for three of them (linear markings). How could I do this?
I found a solution for weight_sum and andlativelayout (CLICK) , but it does not use layout_below.
How can i fix this?
I tried to add additional line layouts inside all line layouts, but then I can not use layout_below.
Here is an idea of a concept image:

Here is my code:
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_below="@+id/linlay_leftcol_notification_header" > <LinearLayout android:id="@+id/linlay_leftcol_clock_theday" android:layout_width="fill_parent" android:layout_height="wrap_content" > <TextView android:id="@+id/tv_theday" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center" android:text="@string/theday" android:textColor="#FFFFFF" /> </LinearLayout> <LinearLayout android:id="@+id/linlay_leftcol_clock_thetime" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@+id/linlay_leftcol_clock_theday" > <TextView android:id="@+id/tv_thetime" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center" android:text="@string/thetime" android:textColor="#FFFFFF" /> </LinearLayout> <LinearLayout android:id="@+id/linlay_leftcol_clock_thenumber_themonth_theyear" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@+id/linlay_leftcol_clock_thetime" > <TextView android:id="@+id/tv_thenumberofday_themonth_theyear" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center" android:text="@string/thenumberofday_themonth_theyear" android:textColor="#FFFFFF" /> </LinearLayout> </RelativeLayout>
source share