Note that there are some explanatory texts on larger screens.

plurals
  1. POEclipse Android XML Layout Header and Footer
    primarykey
    data
    text
    <p>Hi im trying to get a row of buttons at the top of my activity, a row of buttons at the bottom and a webview in between . The top and bottom row will be anochored and the webview will scroll according to its data . </p> <p>My code below is not quite working. Can anyone help me out?. At the moment The webview is sitting below the two button bars why is this?</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout 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;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 android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_below="@id/header" android:layout_above="@id/footer" &gt; &lt;WebView android:id="@+id/webview1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#000000" /&gt; &lt;/RelativeLayout&gt; &lt;/LinearLayout&gt; </code></pre>
    singulars
    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