Created
August 23, 2010 06:45
-
-
Save shaobin0604/544946 to your computer and use it in GitHub Desktop.
Weather Config Layout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment