1 <?xml version="1.0" encoding="utf-8"?> 2 3 <!-- 4 /* 5 * Copyright (C) 2011, The Android Open Source Project 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19 --> 20 21 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:orientation="vertical" > 25 26 <ScrollView 27 android:layout_height="0dp" 28 android:layout_weight="1" 29 android:layout_width="match_parent" 30 android:padding="16dp" 31 android:clipToPadding="false" > 32 33 <LinearLayout 34 android:orientation="vertical" 35 android:layout_height="wrap_content" 36 android:layout_width="match_parent"> 37 38 <TextView android:id="@+id/confirm_text" 39 android:layout_width="match_parent" 40 android:layout_height="wrap_content" 41 android:layout_marginBottom="30dp" 42 android:text="@string/backup_confirm_text" /> 43 44 <TextView android:id="@+id/password_desc" 45 android:layout_below="@id/confirm_text" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:layout_marginBottom="10dp" 49 android:text="@string/current_password_text" /> 50 51 <EditText android:id="@+id/password" 52 android:layout_below="@id/password_desc" 53 android:layout_width="match_parent" 54 android:layout_height="wrap_content" 55 android:layout_marginBottom="10dp" 56 android:password="true" /> 57 58 <TextView android:id="@+id/enc_password_desc" 59 android:layout_below="@id/password" 60 android:layout_width="wrap_content" 61 android:layout_height="wrap_content" 62 android:layout_marginBottom="10dp" 63 android:text="@string/backup_enc_password_text" /> 64 65 <EditText android:id="@+id/enc_password" 66 android:layout_below="@id/enc_password_desc" 67 android:layout_width="match_parent" 68 android:layout_height="wrap_content" 69 android:layout_marginBottom="30dp" 70 android:password="true" /> 71 72 <TextView android:id="@+id/package_name" 73 android:layout_width="match_parent" 74 android:layout_height="20dp" 75 android:layout_marginLeft="30dp" 76 android:layout_below="@id/enc_password" 77 android:layout_marginBottom="30dp" /> 78 </LinearLayout> 79 </ScrollView> 80 81 <!-- button bar divider --> 82 <View android:background="?android:attr/dividerHorizontal" 83 android:layout_height="1dp" 84 android:layout_width="match_parent" /> 85 86 <!-- button bar --> 87 <LinearLayout android:orientation="horizontal" 88 style="?android:attr/buttonBarStyle" 89 android:layout_height="wrap_content" 90 android:layout_width="match_parent" 91 android:layout_gravity="bottom"> 92 93 <Button android:id="@+id/button_deny" 94 style="?android:attr/buttonBarButtonStyle" 95 android:text="@string/deny_backup_button_label" 96 android:layout_height="wrap_content" 97 android:layout_width="0dp" 98 android:layout_weight="1" /> 99 100 <Button android:id="@+id/button_allow" 101 style="?android:attr/buttonBarButtonStyle" 102 android:filterTouchesWhenObscured="true" 103 android:text="@string/allow_backup_button_label" 104 android:layout_height="wrap_content" 105 android:layout_width="0dp" 106 android:layout_weight="1" /> 107 108 </LinearLayout> 109 110 </LinearLayout> 111