OSDN Git Service

almost done...
[android-x86/external-koush-Superuser.git] / Superuser / res / layout / pin.xml
1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2     android:layout_width="match_parent"
3     android:layout_height="match_parent"
4     android:orientation="vertical" >
5
6     <EditText
7         android:padding="@dimen/section_padding"
8         android:maxLines="1"
9         android:hint="@string/enter_pin"
10         android:textColor="@color/holo_blue_dark"
11         android:gravity="center"
12         android:id="@+id/password"
13         style="@android:style/TextAppearance.Large"
14         android:layout_width="match_parent"
15         android:layout_height="wrap_content"
16         android:enabled="false"
17         android:editable="false"
18         android:password="true" />
19
20     <LinearLayout
21         android:layout_width="match_parent"
22         android:layout_height="wrap_content" >
23
24         <Button
25             android:id="@+id/p1"
26             style="@style/PinButton"
27             android:text="1" />
28
29         <Button
30             android:id="@+id/p2"
31             style="@style/PinButton"
32             android:text="2" />
33
34         <Button
35             android:id="@+id/p3"
36             style="@style/PinButton"
37             android:text="3" />
38     </LinearLayout>
39
40     <LinearLayout
41         android:layout_width="match_parent"
42         android:layout_height="wrap_content" >
43
44         <Button
45             android:id="@+id/p4"
46             style="@style/PinButton"
47             android:text="4" />
48
49         <Button
50             android:id="@+id/p5"
51             style="@style/PinButton"
52             android:text="5" />
53
54         <Button
55             android:id="@+id/p6"
56             style="@style/PinButton"
57             android:text="6" />
58     </LinearLayout>
59
60     <LinearLayout
61         android:layout_width="match_parent"
62         android:layout_height="wrap_content" >
63
64         <Button
65             android:id="@+id/p7"
66             style="@style/PinButton"
67             android:text="7" />
68
69         <Button
70             android:id="@+id/p8"
71             style="@style/PinButton"
72             android:text="8" />
73
74         <Button
75             android:id="@+id/p9"
76             style="@style/PinButton"
77             android:text="9" />
78     </LinearLayout>
79
80     <LinearLayout
81         android:layout_width="match_parent"
82         android:layout_height="wrap_content" >
83
84         <Button
85             style="@style/PinButton"
86             android:enabled="false" />
87
88         <Button
89             android:id="@+id/p0"
90             style="@style/PinButton"
91             android:text="0" />
92
93         <ImageButton
94             android:id="@+id/pd"
95             style="@style/PinButton"
96             android:scaleType="fitCenter"
97             android:src="@drawable/ic_delete" />
98     </LinearLayout>
99     
100     <LinearLayout
101         android:background="@color/background_dark"
102         android:layout_width="match_parent"
103         android:layout_height="wrap_content" >
104
105         <Button
106             android:id="@+id/cancel"
107             style="@style/FlatButton"
108             android:layout_width="wrap_content"
109             android:layout_height="wrap_content"
110             android:layout_weight="1"
111             android:text="@android:string/cancel" />
112
113         <LinearLayout
114             android:layout_width="wrap_content"
115             android:layout_height="match_parent"
116             android:paddingBottom="10dp"
117             android:paddingTop="10dp" >
118
119             <LinearLayout
120                 android:layout_width="1dp"
121                 android:layout_height="match_parent"
122                 android:background="@android:color/darker_gray" >
123             </LinearLayout>
124         </LinearLayout>
125
126         <Button
127             android:id="@+id/ok"
128             style="@style/FlatButton"
129             android:layout_width="wrap_content"
130             android:layout_height="wrap_content"
131             android:layout_weight="1"
132             android:text="@android:string/ok" />
133     </LinearLayout>
134     
135 </LinearLayout>