fraser5002
Lurker
Hi,
Im new to android dev,
Im looking for help with layout for my main.xml file.
I am using a table layout with 3 rows
Im looking for help with layout for my main.xml file.
I am using a table layout with 3 rows
I want my first row to contain a set of radio buttons (which im using as a segment control)
The bottom row will be 2 buttons side by side .
The middle row will be a webview.
I want the buttons at the top and bot to always be visible and have the webview use whatever height is left. At the moment my bottom buttons are not visible on the screen due to the webview. How can i correct this?
Thanks
Code:
[LEFT]<TableLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:stretchColumns="*"
xmlns:android="http://schemas.android.com/apk/res/android">[/LEFT]
[LEFT] 
<TableRow >
<com.appname.app.SegmentedRadioGroup android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="5dip" android:orientation="horizontal" android:id="@+id/segment_text" android:layout_span="2" android:checkedButton="@+id/button_one">
<RadioButton android:id="@id/button_one" android:minWidth="40dip" android:minHeight="33dip" android:text=" Description " android:textAppearance="?android:attr/textAppearanceSmall" android:button="@null" android:gravity="center" android:textColor="@color/radio_colors" />
<RadioButton android:id="@+id/button_two" android:minWidth="40dip" android:minHeight="33dip" android:text=" Images " android:button="@null" android:gravity="center" android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="@color/radio_colors" />
<RadioButton android:id="@+id/button_three" android:minWidth="40dip" android:minHeight="33dip" android:text=" Audio " android:button="@null" android:gravity="center" android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="@color/radio_colors" />
<RadioButton android:id="@+id/button_four" android:minWidth="40dip" android:minHeight="33dip" android:text=" Weblinks " android:button="@null" android:gravity="center" android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="@color/radio_colors" />
</com.appname.app.SegmentedRadioGroup>
</TableRow> [/LEFT]
[LEFT]<TableRow>  
<WebView
android:id="@+id/webview1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_span="2" >
</WebView>
</TableRow> [/LEFT]
[LEFT]<TableRow>
<Button
android:id="@+id/main_menu_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="bot button 1" />
<Button
android:id="@+id/scan_exhibit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="bot button 2" />
</TableRow> [/LEFT]
[LEFT]</TableLayout>[/LEFT]