|
53 | 53 |
|
54 | 54 | <EditText |
55 | 55 | android:id="@+id/passcode1" |
56 | | - android:layout_width="wrap_content" |
57 | | - android:layout_height="match_parent" |
58 | | - android:cursorVisible="false" |
59 | | - android:focusableInTouchMode="false" |
60 | | - android:hint="*" |
61 | | - android:inputType="textPassword|number" |
62 | | - android:password="true" |
63 | | - android:maxLength="1" |
64 | | - android:textSize="33sp" /> |
| 56 | + style="@style/PasscodeEditText" /> |
65 | 57 |
|
66 | 58 | <EditText |
67 | 59 | android:id="@+id/passcode2" |
68 | | - android:layout_width="wrap_content" |
69 | | - android:layout_height="match_parent" |
70 | | - android:cursorVisible="false" |
71 | | - android:focusableInTouchMode="false" |
72 | | - android:hint="*" |
73 | | - android:inputType="textPassword|number" |
74 | | - android:password="true" |
75 | | - android:maxLength="1" |
76 | | - android:textSize="33sp" /> |
| 60 | + style="@style/PasscodeEditText" /> |
77 | 61 |
|
78 | 62 | <EditText |
79 | 63 | android:id="@+id/passcode3" |
80 | | - android:layout_width="wrap_content" |
81 | | - android:layout_height="match_parent" |
82 | | - android:cursorVisible="false" |
83 | | - android:focusableInTouchMode="false" |
84 | | - android:hint="*" |
85 | | - android:inputType="textPassword|number" |
86 | | - android:password="true" |
87 | | - android:maxLength="1" |
88 | | - android:textSize="33sp" /> |
| 64 | + style="@style/PasscodeEditText" /> |
89 | 65 |
|
90 | 66 | <EditText |
91 | 67 | android:id="@+id/passcode4" |
92 | | - android:layout_width="wrap_content" |
93 | | - android:layout_height="match_parent" |
94 | | - android:cursorVisible="false" |
95 | | - android:focusableInTouchMode="false" |
96 | | - android:hint="*" |
97 | | - android:inputType="textPassword|number" |
98 | | - android:password="true" |
99 | | - android:maxLength="1" |
100 | | - android:textSize="33sp" /> |
| 68 | + style="@style/PasscodeEditText" /> |
101 | 69 |
|
102 | 70 | </LinearLayout> |
103 | 71 |
|
104 | 72 | </LinearLayout> |
105 | 73 |
|
106 | | - <LinearLayout android:id="@+id/keypad" |
107 | | - android:layout_width="fill_parent" |
| 74 | + <LinearLayout android:layout_width="fill_parent" |
108 | 75 | android:layout_height="fill_parent" |
109 | 76 | android:orientation="vertical" |
110 | 77 | android:layout_weight="1.2" |
|
119 | 86 |
|
120 | 87 | <Button |
121 | 88 | android:id="@+id/one_btn" |
122 | | - android:layout_width="0dp" |
123 | | - android:layout_height="match_parent" |
124 | | - android:layout_weight="1" |
125 | 89 | android:text="1" |
126 | | - android:textSize="25sp" /> |
| 90 | + style="@style/NumericButton" /> |
127 | 91 |
|
128 | 92 | <Button |
129 | 93 | android:id="@+id/two_btn" |
130 | | - android:layout_width="0dp" |
131 | | - android:layout_height="match_parent" |
132 | | - android:layout_weight="1" |
133 | 94 | android:text="2" |
134 | | - android:textSize="25sp" /> |
| 95 | + style="@style/NumericButton" /> |
135 | 96 |
|
136 | 97 | <Button |
137 | 98 | android:id="@+id/three_btn" |
138 | | - android:layout_width="0dp" |
139 | | - android:layout_height="match_parent" |
140 | | - android:layout_weight="1" |
141 | 99 | android:text="3" |
142 | | - android:textSize="25sp" /> |
| 100 | + style="@style/NumericButton" /> |
143 | 101 | </LinearLayout> |
144 | 102 |
|
145 | 103 | <LinearLayout android:id="@+id/four_to_six" |
|
151 | 109 |
|
152 | 110 | <Button |
153 | 111 | android:id="@+id/four_btn" |
154 | | - android:layout_width="0dp" |
155 | | - android:layout_height="match_parent" |
156 | | - android:layout_weight="1" |
157 | 112 | android:text="4" |
158 | | - android:textSize="25sp" /> |
| 113 | + style="@style/NumericButton" /> |
159 | 114 |
|
160 | 115 | <Button |
161 | 116 | android:id="@+id/five_btn" |
162 | | - android:layout_width="0dp" |
163 | | - android:layout_height="match_parent" |
164 | | - android:layout_weight="1" |
165 | 117 | android:text="5" |
166 | | - android:textSize="25sp" /> |
| 118 | + style="@style/NumericButton" /> |
167 | 119 |
|
168 | 120 | <Button |
169 | 121 | android:id="@+id/six_btn" |
170 | | - android:layout_width="0dp" |
171 | | - android:layout_height="match_parent" |
172 | | - android:layout_weight="1" |
173 | 122 | android:text="6" |
174 | | - android:textSize="25sp" /> |
| 123 | + style="@style/NumericButton" /> |
175 | 124 | </LinearLayout> |
176 | 125 |
|
177 | 126 | <LinearLayout android:id="@+id/seven_to_nine" |
|
183 | 132 |
|
184 | 133 | <Button |
185 | 134 | android:id="@+id/seven_btn" |
186 | | - android:layout_width="0dp" |
187 | | - android:layout_height="match_parent" |
188 | | - android:layout_weight="1" |
189 | 135 | android:text="7" |
190 | | - android:textSize="25sp" /> |
| 136 | + style="@style/NumericButton" /> |
191 | 137 |
|
192 | 138 | <Button |
193 | 139 | android:id="@+id/eight_btn" |
194 | | - android:layout_width="0dp" |
195 | | - android:layout_height="match_parent" |
196 | | - android:layout_weight="1" |
197 | 140 | android:text="8" |
198 | | - android:textSize="25sp" /> |
| 141 | + style="@style/NumericButton" /> |
199 | 142 |
|
200 | 143 | <Button |
201 | 144 | android:id="@+id/nine_btn" |
202 | | - android:layout_width="0dp" |
203 | | - android:layout_height="match_parent" |
204 | | - android:layout_weight="1" |
205 | 145 | android:text="9" |
206 | | - android:textSize="25sp" /> |
| 146 | + style="@style/NumericButton" /> |
207 | 147 | </LinearLayout> |
208 | 148 |
|
209 | | - <LinearLayout |
210 | | - android:id="@+id/zero" |
211 | | - android:layout_width="match_parent" |
212 | | - android:layout_height="fill_parent" |
213 | | - android:orientation="horizontal" |
214 | | - android:weightSum="3" |
215 | | - android:layout_weight="1"> |
| 149 | + <LinearLayout android:id="@+id/zero" |
| 150 | + android:layout_width="match_parent" |
| 151 | + android:layout_height="fill_parent" |
| 152 | + android:orientation="horizontal" |
| 153 | + android:weightSum="3" |
| 154 | + android:layout_weight="1"> |
216 | 155 |
|
217 | 156 | <Button |
218 | 157 | android:id="@+id/empty_btn" |
219 | | - android:layout_width="0dp" |
220 | | - android:layout_height="match_parent" |
221 | | - android:layout_weight="1" |
222 | 158 | android:text="" |
223 | | - android:textSize="25sp" |
224 | | - android:enabled="false" /> |
| 159 | + android:enabled="false" |
| 160 | + style="@style/NumericButton" /> |
225 | 161 |
|
226 | 162 | <Button |
227 | 163 | android:id="@+id/zero_btn" |
228 | | - android:layout_width="0dp" |
229 | | - android:layout_height="match_parent" |
230 | | - android:layout_weight="1" |
231 | 164 | android:text="0" |
232 | | - android:textSize="25sp"/> |
| 165 | + style="@style/NumericButton" /> |
233 | 166 |
|
234 | 167 | <ImageButton |
235 | 168 | android:id="@+id/delete_btn" |
236 | | - android:layout_width="0dp" |
237 | | - android:layout_height="match_parent" |
238 | | - android:layout_weight="1" |
239 | | - android:src="@drawable/clear_btn" /> |
| 169 | + android:src="@drawable/clear_btn" |
| 170 | + style="@style/NumericButton" /> |
240 | 171 | </LinearLayout> |
241 | 172 |
|
242 | 173 | </LinearLayout> |
|
0 commit comments