confirm_backup.xml revision 31deacf6f59be3633a4bcdb9359b2f9f750de527
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              android:padding="16dp" >
26
27    <ScrollView 
28            android:layout_height="0dp"
29            android:layout_weight="1"
30            android:layout_width="match_parent">
31        <LinearLayout
32                android:orientation="vertical"
33                android:layout_height="wrap_content"
34                android:layout_width="match_parent">
35
36    <TextView android:id="@+id/confirm_text"
37              android:layout_width="match_parent" 
38              android:layout_height="wrap_content"
39              android:layout_marginBottom="30dp"
40              android:text="@string/backup_confirm_text" />
41
42    <TextView android:id="@+id/password_desc"
43              android:layout_below="@id/confirm_text"
44              android:layout_width="wrap_content"
45              android:layout_height="wrap_content"
46              android:layout_marginBottom="10dp"
47              android:text="@string/current_password_text" />
48
49    <EditText android:id="@+id/password"
50              android:layout_below="@id/password_desc"
51              android:layout_width="match_parent"
52              android:layout_height="wrap_content"
53              android:layout_marginBottom="10dp"
54              android:password="true" />
55
56    <TextView android:id="@+id/enc_password_desc"
57              android:layout_below="@id/password"
58              android:layout_width="wrap_content"
59              android:layout_height="wrap_content"
60              android:layout_marginBottom="10dp"
61              android:text="@string/backup_enc_password_text" />
62
63    <EditText android:id="@+id/enc_password"
64              android:layout_below="@id/enc_password_desc"
65              android:layout_width="match_parent"
66              android:layout_height="wrap_content"
67              android:layout_marginBottom="30dp"
68              android:password="true" />
69
70    <TextView android:id="@+id/package_name"
71              android:layout_width="match_parent"
72              android:layout_height="20dp"
73              android:layout_marginLeft="30dp"
74              android:layout_below="@id/enc_password"
75              android:layout_marginBottom="30dp" />
76        </LinearLayout>
77    </ScrollView>
78
79    <LinearLayout android:orientation="horizontal"
80                  android:layout_height="wrap_content"
81                  android:layout_width="match_parent"
82                  android:layout_gravity="bottom">
83
84    <Button android:id="@+id/button_allow"
85            android:filterTouchesWhenObscured="true"
86            android:text="@string/allow_backup_button_label"
87            android:layout_below="@id/package_name"
88            android:layout_height="wrap_content"
89            android:layout_width="0dp"
90            android:layout_weight="1" />
91
92    <Button android:id="@+id/button_deny"
93            android:text="@string/deny_backup_button_label"
94            android:layout_below="@id/package_name"
95            android:layout_toRightOf="@id/button_allow"
96            android:layout_alignTop="@id/button_allow"
97            android:layout_height="wrap_content"
98            android:layout_width="0dp"
99            android:layout_weight="1" />
100
101    </LinearLayout>
102
103</LinearLayout>
104