1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2010 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<!-- Layout description of the BackupRestore sample's main activity --> 18 19<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 20 android:orientation="vertical" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content"> 23 24 <ScrollView 25 android:orientation="vertical" 26 android:layout_width="fill_parent" 27 android:layout_height="fill_parent" 28 android:layout_weight="1"> 29 30 <LinearLayout 31 android:orientation="vertical" 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content"> 34 35 <TextView android:text="@string/filling_text" 36 android:textSize="20dp" 37 android:layout_marginTop="20dp" 38 android:layout_marginBottom="10dp" 39 android:layout_width="match_parent" 40 android:layout_height="wrap_content"/> 41 42 <RadioGroup android:id="@+id/filling_group" 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" 45 android:layout_marginLeft="20dp" 46 android:orientation="vertical"> 47 48 <RadioButton android:id="@+id/bacon" 49 android:text="@string/bacon_label"/> 50 <RadioButton android:id="@+id/pastrami" 51 android:text="@string/pastrami_label"/> 52 <RadioButton android:id="@+id/hummus" 53 android:text="@string/hummus_label"/> 54 55 </RadioGroup> 56 57 <TextView android:text="@string/extras_text" 58 android:textSize="20dp" 59 android:layout_marginTop="20dp" 60 android:layout_marginBottom="10dp" 61 android:layout_width="match_parent" 62 android:layout_height="wrap_content"/> 63 64 <CheckBox android:id="@+id/mayo" 65 android:text="@string/mayo_text" 66 android:layout_marginLeft="20dp" 67 android:layout_width="match_parent" 68 android:layout_height="wrap_content"/> 69 70 <CheckBox android:id="@+id/tomato" 71 android:text="@string/tomato_text" 72 android:layout_marginLeft="20dp" 73 android:layout_width="match_parent" 74 android:layout_height="wrap_content"/> 75 76 </LinearLayout> 77 78 </ScrollView> 79 80 <Button android:id="@+id/restore_button" 81 android:text="@string/restore_text" 82 android:onClick="onRestoreButtonClick" 83 android:layout_height="wrap_content" 84 android:layout_width="wrap_content" 85 android:layout_weight="0" /> 86 87</LinearLayout> 88