shaobin0604
8/23/2010 - 6:45 AM

Weather Config Layout

Weather Config Layout

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
	android:layout_width="fill_parent" 
	android:layout_height="fill_parent"
	android:fillViewport="true">
	<LinearLayout android:layout_width="fill_parent"
		android:layout_height="fill_parent" 
		android:orientation="vertical">

<!-- 
		<TextView android:layout_width="fill_parent"
			android:layout_height="wrap_content" android:padding="10dip"
			android:text="Select Province" android:textAppearance="?android:attr/textAppearanceSmall" />

		<Spinner android:id="@+id/conf_prov" android:layout_width="fill_parent"
			android:layout_height="wrap_content" 
			android:prompt="@string/dlg_set_" android:layout_marginLeft="10dip"
			android:layout_marginRight="10dip" />
 -->
 
		<TextView android:layout_width="fill_parent"
			android:layout_height="wrap_content" 
			android:padding="10dip"
			android:text="@string/label_select_location" 
			android:textAppearance="?android:attr/textAppearanceSmall" />

		<Spinner android:id="@+id/conf_city" 
			android:layout_width="fill_parent"
			android:layout_height="wrap_content" 
			android:prompt="@string/dlg_conf_city" 
			android:layout_marginLeft="10dip"
			android:layout_marginRight="10dip" />		

		<TextView android:layout_width="fill_parent"
			android:layout_height="wrap_content" 
			android:padding="10dip"
			android:text="@string/label_select_temperature_unit"
			android:textAppearance="?android:attr/textAppearanceSmall" />
			
		<RadioGroup android:id="@+id/conf_units"
			android:layout_width="fill_parent" 
			android:layout_height="wrap_content"
			android:paddingLeft="20dip" 
			android:paddingRight="20dip"
			android:paddingBottom="20dip" 
			android:orientation="vertical">

			<RadioButton android:id="@+id/conf_units_c"
				android:layout_width="fill_parent" 
				android:layout_height="wrap_content"
				android:checked="true" 
				android:text="@string/label_celsius"
				android:textAppearance="?android:attr/textAppearanceMedium" />

			<RadioButton android:id="@+id/conf_units_f"
				android:layout_width="fill_parent" 
				android:layout_height="wrap_content"
				android:text="@string/label_fahrenheit" 
				android:textAppearance="?android:attr/textAppearanceMedium" />
		</RadioGroup>

		<View android:layout_width="fill_parent" 
			android:layout_height="0dip"
			android:layout_weight="1" />

		<LinearLayout android:layout_width="fill_parent"
			android:layout_height="wrap_content" 
			android:orientation="horizontal"
			style="@android:style/ButtonBar">

			<Button android:id="@+id/btn_save" 
				android:layout_width="0dip"
				android:layout_height="wrap_content" 
				android:layout_weight="1"
				android:text="@android:string/ok" />

			<Button android:id="@+id/btn_cancel" 
				android:layout_width="0dip"
				android:layout_height="wrap_content" 
				android:layout_weight="1"
				android:text="@android:string/cancel" />

		</LinearLayout>

	</LinearLayout>

</ScrollView>