Note that there are some explanatory texts on larger screens.

plurals
  1. PORelative layout Question
    primarykey
    data
    text
    <p>I'm working on relative layout. Basically i would like to put my ticker(lnrTicker) and the footer(txtFooter) at the bottom of the screen. Everything works file, except the ticker clips off some bottom portion of wvRight element. So i figured out that probably i'll have to put android:layout_above="@id/lnrTicker", in the wvRight component. But whenever i do that, i see compilation error stating that cannot find resource "lnrTicker". How can i achieve the layout, or is there something i'm missing in understanding to layout_above. Here is my layout file </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/relMain" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="0dp" android:background="@color/black"&gt; &lt;WebView android:id="@+id/wvHeader" android:layout_height="wrap_content" android:layout_width="fill_parent" android:visibility="gone" android:scrollbars="none"/&gt; &lt;WebView android:id="@+id/wvLeft" android:layout_width="300dp" android:layout_height="fill_parent" android:scrollbars="none" android:visibility="gone" android:layout_below="@id/wvHeader"/&gt; &lt;WebView android:id="@+id/wvRight" android:layout_width="wrap_content" android:layout_height="fill_parent" android:scrollbars="none" android:layout_toRightOf="@id/wvLeft" android:layout_below="@id/wvHeader" android:layout_above="@id/lnrTicker"/&gt; &lt;LinearLayout android:id="@+id/lnrTicker" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="60dp" android:layout_below="@id/wvRight"/&gt; &lt;TextView android:id="@+id/txtFooter" android:layout_width="fill_parent" android:layout_height="wrap_content" android:textSize="8sp" android:layout_below="@id/lnrTicker" android:layout_alignParentBottom="true"/&gt; &lt;/RelativeLayout&gt; </code></pre> <p>Is it possible to add android:layout_above="@id/lnrTicker", at runtime to wvRight component?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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