Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Even though your <code>WebView</code> is in a <code>RelativeLayout</code>, you cannot call the <code>layout_above and layout_below</code> on it, since the other layouts are not within the same <code>RelativeLayout</code>. These options only apply to objects within a <code>RelativeLayout</code> in the way you're doing it.</p> <p>Simply put your <code>WebView</code> in between the other layouts, you don't even need a seperate layout for it.</p> <p>Give this a try:</p> <p><strong>Re-editted: Instead of using a <code>LinearLayout</code> I put your entire layout in a <code>RelativeLayout</code>. Then your option does work. Try this, it seems to work for me but I'm missing your custom classes.</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" &gt; &lt;LinearLayout android:id="@+id/header" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" &gt; &lt;com.appname.app.SegmentedRadioGroup android:id="@+id/segment_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="5dip" android:layout_span="2" android:checkedButton="@+id/button_one" android:orientation="horizontal" &gt; &lt;RadioButton android:id="@id/button_one" android:button="@null" android:gravity="center" android:minHeight="33dip" android:minWidth="40dip" android:text=" Description " android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="@color/radio_colors" /&gt; &lt;RadioButton android:id="@+id/button_two" android:button="@null" android:gravity="center" android:minHeight="33dip" android:minWidth="40dip" android:text=" Images " android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="@color/radio_colors" /&gt; &lt;RadioButton android:id="@+id/button_three" android:button="@null" android:gravity="center" android:minHeight="33dip" android:minWidth="40dip" android:text=" Audio " android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="@color/radio_colors" /&gt; &lt;RadioButton android:id="@+id/button_four" android:button="@null" android:gravity="center" android:minHeight="33dip" android:minWidth="40dip" android:text=" Weblinks " android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="@color/radio_colors" /&gt; &lt;/com.appname.app.SegmentedRadioGroup&gt; &lt;/LinearLayout&gt; &lt;WebView android:id="@+id/webview1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_above="@+id/footer" android:layout_below="@+id/header" android:background="#000000" /&gt; &lt;LinearLayout android:id="@+id/footer" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:orientation="horizontal" &gt; &lt;Button android:id="@+id/main_menu_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Main Menu" /&gt; &lt;Button android:id="@+id/scan_exhibit" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Scan New Exhibit" /&gt; &lt;/LinearLayout&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