|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | + |
| 3 | +<!-- |
| 4 | + Copyright (c) 2014 Oleksandr Tyshkovets <[email protected]> |
| 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:layout_width="match_parent" |
| 21 | + android:layout_height="wrap_content" |
| 22 | + android:layout_alignParentBottom="true" |
| 23 | + android:layout_centerHorizontal="true"> |
| 24 | + |
| 25 | + <LinearLayout |
| 26 | + android:id="@+id/zero" |
| 27 | + android:layout_width="match_parent" |
| 28 | + android:layout_height="55dp" |
| 29 | + android:layout_alignParentBottom="true" |
| 30 | + android:orientation="horizontal" |
| 31 | + android:weightSum="3" > |
| 32 | + |
| 33 | + <Button |
| 34 | + android:id="@+id/empty_btn" |
| 35 | + android:layout_width="0dp" |
| 36 | + android:layout_height="match_parent" |
| 37 | + android:layout_weight="1" |
| 38 | + android:text="" |
| 39 | + android:textSize="25sp" |
| 40 | + android:enabled="false" /> |
| 41 | + |
| 42 | + <Button |
| 43 | + android:id="@+id/zero_btn" |
| 44 | + android:layout_width="0dp" |
| 45 | + android:layout_height="match_parent" |
| 46 | + android:layout_weight="1" |
| 47 | + android:text="0" |
| 48 | + android:textSize="25sp"/> |
| 49 | + |
| 50 | + <ImageButton |
| 51 | + android:id="@+id/delete_btn" |
| 52 | + android:layout_width="0dp" |
| 53 | + android:layout_height="match_parent" |
| 54 | + android:layout_weight="1" |
| 55 | + android:src="@drawable/clear_btn" /> |
| 56 | + |
| 57 | + </LinearLayout> |
| 58 | + |
| 59 | + <LinearLayout |
| 60 | + android:id="@+id/seven_to_nine" |
| 61 | + android:layout_width="match_parent" |
| 62 | + android:layout_height="55dp" |
| 63 | + android:layout_above="@+id/zero" |
| 64 | + android:orientation="horizontal" |
| 65 | + android:weightSum="3" > |
| 66 | + |
| 67 | + <Button |
| 68 | + android:id="@+id/seven_btn" |
| 69 | + android:layout_width="0dp" |
| 70 | + android:layout_height="match_parent" |
| 71 | + android:layout_weight="1" |
| 72 | + android:text="7" |
| 73 | + android:textSize="25sp" /> |
| 74 | + |
| 75 | + <Button |
| 76 | + android:id="@+id/eight_btn" |
| 77 | + android:layout_width="0dp" |
| 78 | + android:layout_height="match_parent" |
| 79 | + android:layout_weight="1" |
| 80 | + android:text="8" |
| 81 | + android:textSize="25sp" /> |
| 82 | + |
| 83 | + <Button |
| 84 | + android:id="@+id/nine_btn" |
| 85 | + android:layout_width="0dp" |
| 86 | + android:layout_height="match_parent" |
| 87 | + android:layout_weight="1" |
| 88 | + android:text="9" |
| 89 | + android:textSize="25sp" /> |
| 90 | + </LinearLayout> |
| 91 | + |
| 92 | + <LinearLayout |
| 93 | + android:id="@+id/four_to_six" |
| 94 | + android:layout_width="match_parent" |
| 95 | + android:layout_height="55dp" |
| 96 | + android:layout_above="@+id/seven_to_nine" |
| 97 | + android:orientation="horizontal" |
| 98 | + android:weightSum="3" > |
| 99 | + |
| 100 | + <Button |
| 101 | + android:id="@+id/four_btn" |
| 102 | + android:layout_width="0dp" |
| 103 | + android:layout_height="match_parent" |
| 104 | + android:layout_weight="1" |
| 105 | + android:text="4" |
| 106 | + android:textSize="25sp" /> |
| 107 | + |
| 108 | + <Button |
| 109 | + android:id="@+id/five_btn" |
| 110 | + android:layout_width="0dp" |
| 111 | + android:layout_height="match_parent" |
| 112 | + android:layout_weight="1" |
| 113 | + android:text="5" |
| 114 | + android:textSize="25sp" /> |
| 115 | + |
| 116 | + <Button |
| 117 | + android:id="@+id/six_btn" |
| 118 | + android:layout_width="0dp" |
| 119 | + android:layout_height="match_parent" |
| 120 | + android:layout_weight="1" |
| 121 | + android:text="6" |
| 122 | + android:textSize="25sp" /> |
| 123 | + </LinearLayout> |
| 124 | + |
| 125 | + <LinearLayout |
| 126 | + android:id="@+id/one_to_three" |
| 127 | + android:layout_width="match_parent" |
| 128 | + android:layout_height="55dp" |
| 129 | + android:layout_above="@+id/four_to_six" |
| 130 | + android:orientation="horizontal" |
| 131 | + android:weightSum="3" > |
| 132 | + |
| 133 | + <Button |
| 134 | + android:id="@+id/one_btn" |
| 135 | + android:layout_width="0dp" |
| 136 | + android:layout_height="match_parent" |
| 137 | + android:layout_weight="1" |
| 138 | + android:text="1" |
| 139 | + android:textSize="25sp" /> |
| 140 | + |
| 141 | + <Button |
| 142 | + android:id="@+id/two_btn" |
| 143 | + android:layout_width="0dp" |
| 144 | + android:layout_height="match_parent" |
| 145 | + android:layout_weight="1" |
| 146 | + android:text="2" |
| 147 | + android:textSize="25sp" /> |
| 148 | + |
| 149 | + <Button |
| 150 | + android:id="@+id/three_btn" |
| 151 | + android:layout_width="0dp" |
| 152 | + android:layout_height="match_parent" |
| 153 | + android:layout_weight="1" |
| 154 | + android:text="3" |
| 155 | + android:textSize="25sp" /> |
| 156 | + </LinearLayout> |
| 157 | + |
| 158 | + <LinearLayout |
| 159 | + android:id="@+id/pass_label" |
| 160 | + android:layout_width="match_parent" |
| 161 | + android:layout_height="100dp" |
| 162 | + android:orientation="horizontal" > |
| 163 | + |
| 164 | + <TextView |
| 165 | + android:id="@+id/passcode_label" |
| 166 | + android:layout_width="match_parent" |
| 167 | + android:layout_height="match_parent" |
| 168 | + android:gravity="center" |
| 169 | + android:text="Enter passcode" |
| 170 | + android:textSize="25sp" /> |
| 171 | + |
| 172 | + </LinearLayout> |
| 173 | + |
| 174 | + <LinearLayout |
| 175 | + android:layout_width="match_parent" |
| 176 | + android:layout_height="70dp" |
| 177 | + android:layout_below="@+id/pass_label" |
| 178 | + android:orientation="horizontal" |
| 179 | + android:gravity="center" > |
| 180 | + |
| 181 | + <EditText |
| 182 | + android:id="@+id/passcode1" |
| 183 | + android:layout_width="wrap_content" |
| 184 | + android:layout_height="match_parent" |
| 185 | + android:cursorVisible="false" |
| 186 | + android:focusableInTouchMode="false" |
| 187 | + android:hint="*" |
| 188 | + android:inputType="textPassword|number" |
| 189 | + android:password="true" |
| 190 | + android:maxLength="1" |
| 191 | + android:textSize="33sp" /> |
| 192 | + |
| 193 | + <EditText |
| 194 | + android:id="@+id/passcode2" |
| 195 | + android:layout_width="wrap_content" |
| 196 | + android:layout_height="match_parent" |
| 197 | + android:cursorVisible="false" |
| 198 | + android:focusableInTouchMode="false" |
| 199 | + android:hint="*" |
| 200 | + android:inputType="textPassword|number" |
| 201 | + android:password="true" |
| 202 | + android:maxLength="1" |
| 203 | + android:textSize="33sp" /> |
| 204 | + |
| 205 | + <EditText |
| 206 | + android:id="@+id/passcode3" |
| 207 | + android:layout_width="wrap_content" |
| 208 | + android:layout_height="match_parent" |
| 209 | + android:cursorVisible="false" |
| 210 | + android:focusableInTouchMode="false" |
| 211 | + android:hint="*" |
| 212 | + android:inputType="textPassword|number" |
| 213 | + android:password="true" |
| 214 | + android:maxLength="1" |
| 215 | + android:textSize="33sp" /> |
| 216 | + |
| 217 | + <EditText |
| 218 | + android:id="@+id/passcode4" |
| 219 | + android:layout_width="wrap_content" |
| 220 | + android:layout_height="match_parent" |
| 221 | + android:cursorVisible="false" |
| 222 | + android:focusableInTouchMode="false" |
| 223 | + android:hint="*" |
| 224 | + android:inputType="textPassword|number" |
| 225 | + android:password="true" |
| 226 | + android:maxLength="1" |
| 227 | + android:textSize="33sp" /> |
| 228 | + |
| 229 | + </LinearLayout> |
| 230 | + |
| 231 | +</RelativeLayout> |
0 commit comments