OSDN Git Service

Disabling the activate button when paused am: af5d8b9b03 am: 26f4aceece am: ccad4a3621
[android-x86/packages-apps-Settings.git] / res / layout-sw600dp / crypt_keeper_progress.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2011 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 <FrameLayout
18     xmlns:android="http://schemas.android.com/apk/res/android"
19     android:layout_width="match_parent"
20     android:layout_height="match_parent"
21 >
22     <RelativeLayout
23         android:layout_width="wrap_content"
24         android:layout_height="wrap_content"
25         android:layout_gravity="center"
26         android:padding="64dip"
27     >
28         <ImageView
29             android:id="@+id/encroid"
30             android:layout_width="wrap_content"
31             android:layout_height="wrap_content"
32             android:layout_alignParentEnd="true"
33             android:layout_alignParentBottom="true"
34             android:paddingEnd="65dip"
35             android:src="@drawable/encroid_waiting"
36             android:contentDescription="@null"
37         />
38
39         <TextView
40             android:id="@+id/title"
41             android:layout_width="wrap_content"
42             android:layout_height="wrap_content"
43             android:minHeight="48dip"
44             android:layout_alignParentTop="true"
45             android:layout_alignParentStart="true"
46             android:layout_marginStart="16dip"
47             android:layout_marginEnd="16dip"
48             android:textSize="30dip"
49             android:textColor="@color/title_color"
50             android:text="@string/crypt_keeper_setup_title"
51             android:gravity="bottom"
52         />
53
54         <!-- Divider -->
55         <RelativeLayout
56             android:id="@+id/top_divider"
57             android:layout_width="match_parent"
58             android:layout_height="wrap_content"
59             android:layout_below="@+id/title"
60         >
61             <ProgressBar
62                 android:id="@+id/progress_bar"
63                 android:layout_width="match_parent"
64                 android:layout_height="wrap_content"
65                 style="?android:attr/progressBarStyleHorizontal"
66             />
67         </RelativeLayout>
68
69         <TextView
70             android:id="@+id/status"
71             android:layout_width="match_parent"
72             android:layout_height="wrap_content"
73             android:layout_below="@+id/top_divider"
74             android:paddingTop="21dip"
75             android:layout_marginStart="16dip"
76             android:layout_marginEnd="16dip"
77             android:textAppearance="?android:attr/textAppearanceMedium"
78         />
79
80         <!-- Divider -->
81         <RelativeLayout
82             android:id="@+id/bottom_divider"
83             android:layout_width="match_parent"
84             android:layout_height="wrap_content"
85             android:layout_above="@+id/factory_reset"
86             android:visibility="gone"
87         >
88             <ProgressBar
89                 android:layout_width="match_parent"
90                 android:layout_height="wrap_content"
91                 style="?android:attr/progressBarStyleHorizontal"
92             />
93         </RelativeLayout>
94
95         <Button
96             android:id="@+id/factory_reset"
97             android:layout_width="208dip"
98             android:layout_height="48dip"
99             android:layout_alignParentEnd="true"
100             android:layout_alignParentBottom="true"
101             android:layout_marginBottom="80dip"
102             android:layout_marginEnd="16dip"
103             android:text="@string/master_clear_button_text"
104             android:visibility="gone"
105         />
106
107     </RelativeLayout>
108 </FrameLayout>