Note that there are some explanatory texts on larger screens.

plurals
  1. POPlace a RelativeLayout below a LinearLayout inside another LinearLayout
    text
    copied!<p>I'm trying to place a <code>RelativeLayout</code> below a <code>LinearLayout</code> that is nested inside another <code>LinearLayout</code> and it's not working.</p> <p>Is there any way I can do that?</p> <p>I need to keep the ability of settings weights and the ability of placing a Layout (with some transparent background) above another Layout.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/relative" android:layout_width="wrap_content" android:layout_height="fill_parent" &gt; &lt;LinearLayout android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_horizontal" android:orientation="vertical" android:weightSum="800"&gt; &lt;LinearLayout android:layout_alignParentRight="true" android:layout_width="fill_parent" android:id="@+id/infoCanso" android:orientation="vertical" android:background="@drawable/black_glossy_bg_iphone" android:gravity="center_vertical|center_horizontal" android:layout_height="0dip" android:layout_weight="90"&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:id="@+id/albumBG" android:layout_width="wrap_content" android:layout_below="@+id/infoCanso" android:layout_height="0dip" android:layout_weight="482"&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:id="@+id/linearLayout1" android:background="#80ffffff" android:layout_width="fill_parent" android:layout_height="0dip" android:layout_weight="90"&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="0dip" android:id="@+id/LinearLayout01" android:layout_weight="100" android:background="#ffffff"&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="50dip" android:id="@+id/volumeBar" android:background="#80000000" android:gravity="center" android:layout_below="@+id/infoCanso"&gt; &lt;/RelativeLayout&gt; &lt;/RelativeLayout&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload