OSDN Git Service

am 0fbe1dfb: Merge "cherrypick from master: Change-Id: I169749dc594ca1d79a802db4c53ec...
[android-x86/frameworks-base.git] / core / res / res / layout / keyguard_screen_sim_puk_landscape.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 **
4 ** Copyright 2008, The Android Open Source Project
5 **
6 ** Licensed under the Apache License, Version 2.0 (the "License")
7 ** you may not use this file except in compliance with the License.
8 ** You may obtain a copy of the License at
9 **
10 **     http://www.apache.org/licenses/LICENSE-2.0
11 **
12 ** Unless required by applicable law or agreed to in writing, software
13 ** distributed under the License is distributed on an "AS IS" BASIS,
14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ** See the License for the specific language governing permissions and
16 ** limitations under the License.
17 */
18 -->
19 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
20     android:orientation="vertical"
21     android:layout_width="match_parent"
22     android:layout_height="match_parent"
23     android:background="@android:color/background_dark"
24         >
25
26     <LinearLayout android:id="@+id/topDisplayGroup"
27         android:layout_width="match_parent"
28         android:layout_height="wrap_content"
29         android:orientation="vertical">
30
31         <!-- header text ('Enter Puk Code') -->
32         <TextView android:id="@+id/headerText"
33             android:layout_width="match_parent"
34             android:layout_height="wrap_content"
35             android:gravity="center"
36             android:singleLine="true"
37             android:textAppearance="?android:attr/textAppearanceLarge"/>
38
39         <!-- Carrier info -->
40         <TextView android:id="@+id/carrier"
41             android:layout_width="fill_parent"
42             android:layout_height="wrap_content"
43             android:layout_marginTop="9dip"
44             android:gravity="center"
45             android:singleLine="true"
46             android:ellipsize="marquee"
47             android:textAppearance="?android:attr/textAppearanceMedium"/>
48
49         <LinearLayout
50             android:orientation="horizontal"
51             android:layout_width="match_parent"
52             android:layout_height="wrap_content">
53
54             <LinearLayout
55                 android:orientation="vertical"
56                 android:layout_width="wrap_content"
57                 android:layout_height="match_parent"
58                 android:layout_marginRight="10dip"
59                 android:layout_marginLeft="10dip">
60                 <TextView android:id="@+id/enter_puk"
61                     android:layout_width="wrap_content"
62                     android:layout_height="wrap_content"
63                     android:gravity="center_vertical"
64                     android:text="@android:string/keyguard_password_enter_puk_prompt"
65                     android:textSize="30sp"
66                     android:layout_marginBottom="10dip"/>
67                 <TextView android:id="@+id/enter_pin"
68                     android:layout_width="wrap_content"
69                     android:layout_height="wrap_content"
70                     android:gravity="center_vertical"
71                     android:text="@android:string/keyguard_password_enter_pin_prompt"
72                     android:textSize="30sp"
73                     android:layout_marginTop="10dip"/>
74             </LinearLayout>
75
76             <LinearLayout
77                   android:orientation="vertical"
78                   android:layout_width="wrap_content"
79                   android:layout_weight="1"
80                   android:layout_height="match_parent"
81                   android:paddingRight="0dip"
82                   android:layout_marginRight="10dip"
83                   android:layout_marginLeft="10dip">
84
85                   <LinearLayout
86                       android:layout_width="match_parent"
87                       android:layout_height="wrap_content"
88                       android:orientation="horizontal"
89                       android:layout_marginRight="6dip"
90                       android:layout_marginLeft="6dip"
91                       android:gravity="center_vertical"
92                       android:background="@android:drawable/edit_text">
93
94                       <!-- displays dots as user enters puk -->
95                       <TextView android:id="@+id/pukDisplay"
96                           android:layout_width="0dip"
97                           android:layout_height="wrap_content"
98                           android:layout_weight="1"
99                           android:maxLines="1"
100                           android:textAppearance="?android:attr/textAppearanceLargeInverse"
101                           android:textStyle="bold"
102                           android:inputType="textPassword"
103                       />
104
105                       <ImageButton android:id="@+id/pukDel"
106                           android:src="@android:drawable/ic_input_delete"
107                           android:layout_width="wrap_content"
108                           android:layout_height="wrap_content"
109                           android:layout_marginRight="-3dip"
110                           android:layout_marginBottom="-3dip"
111                       />
112                   </LinearLayout>
113
114
115                   <LinearLayout
116                       android:layout_width="match_parent"
117                       android:layout_height="wrap_content"
118                       android:orientation="horizontal"
119                       android:layout_marginRight="6dip"
120                       android:layout_marginLeft="6dip"
121                       android:gravity="center_vertical"
122                       android:background="@android:drawable/edit_text">
123
124                       <!-- displays dots as user enters new pin -->
125                       <TextView android:id="@+id/pinDisplay"
126                           android:layout_width="0dip"
127                           android:layout_height="wrap_content"
128                           android:layout_weight="1"
129                           android:maxLines="1"
130                           android:textAppearance="?android:attr/textAppearanceLargeInverse"
131                           android:textStyle="bold"
132                           android:inputType="textPassword"
133                       />
134
135                       <ImageButton android:id="@+id/pinDel"
136                           android:src="@android:drawable/ic_input_delete"
137                           android:layout_width="wrap_content"
138                           android:layout_height="wrap_content"
139                           android:layout_marginRight="-3dip"
140                           android:layout_marginBottom="-3dip"
141                       />
142                   </LinearLayout>
143               </LinearLayout>
144         </LinearLayout>
145     </LinearLayout>
146
147     <LinearLayout
148         android:orientation="horizontal"
149         android:layout_alignParentBottom="true"
150         android:layout_width="match_parent"
151         android:layout_height="wrap_content"
152         android:layout_marginBottom="8dip"
153         android:layout_marginLeft="8dip"
154         android:layout_marginRight="8dip">
155
156         <Button android:id="@+id/ok"
157             android:text="@android:string/ok"
158             android:layout_alignParentBottom="true"
159             android:layout_width="0dip"
160             android:layout_height="wrap_content"
161             android:layout_weight="1.0"
162             android:layout_marginBottom="8dip"
163             android:layout_marginRight="8dip"
164             android:textSize="18sp"
165             />
166
167         <Button android:id="@+id/emergencyCall"
168             android:text="@android:string/lockscreen_emergency_call"
169             android:layout_alignParentBottom="true"
170             android:layout_centerHorizontal="true"
171             android:layout_width="0dip"
172             android:layout_height="wrap_content"
173             android:layout_weight="1.0"
174             android:layout_marginBottom="8dip"
175             android:layout_marginLeft="8dip"
176             android:textSize="18sp"
177             android:drawableLeft="@drawable/ic_emergency"
178             android:drawablePadding="8dip"
179         />
180     </LinearLayout>
181
182 </RelativeLayout>