Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2014 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
Filipe Gonçalves | a12b3cf | 2016-05-31 13:37:26 +0100 | [diff] [blame] | 18 | <com.android.calculator2.CalculatorNumericPadLayout |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | android:id="@+id/pad_numeric" |
| 21 | style="@style/PadLayoutStyle.Numeric" |
| 22 | android:background="@color/pad_numeric_background_color" |
| 23 | android:columnCount="3" |
| 24 | android:rowCount="4"> |
| 25 | |
| 26 | <Button |
| 27 | android:id="@+id/digit_7" |
| 28 | style="@style/PadButtonStyle.Numeric" |
Filipe Gonçalves | a12b3cf | 2016-05-31 13:37:26 +0100 | [diff] [blame] | 29 | android:onClick="onButtonClick" /> |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 30 | |
| 31 | <Button |
| 32 | android:id="@+id/digit_8" |
| 33 | style="@style/PadButtonStyle.Numeric" |
Filipe Gonçalves | a12b3cf | 2016-05-31 13:37:26 +0100 | [diff] [blame] | 34 | android:onClick="onButtonClick" /> |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 35 | |
| 36 | <Button |
| 37 | android:id="@+id/digit_9" |
| 38 | style="@style/PadButtonStyle.Numeric" |
Filipe Gonçalves | a12b3cf | 2016-05-31 13:37:26 +0100 | [diff] [blame] | 39 | android:onClick="onButtonClick" /> |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 40 | |
| 41 | <Button |
| 42 | android:id="@+id/digit_4" |
| 43 | style="@style/PadButtonStyle.Numeric" |
Filipe Gonçalves | a12b3cf | 2016-05-31 13:37:26 +0100 | [diff] [blame] | 44 | android:onClick="onButtonClick" /> |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 45 | |
| 46 | <Button |
| 47 | android:id="@+id/digit_5" |
| 48 | style="@style/PadButtonStyle.Numeric" |
Filipe Gonçalves | a12b3cf | 2016-05-31 13:37:26 +0100 | [diff] [blame] | 49 | android:onClick="onButtonClick" /> |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 50 | |
| 51 | <Button |
| 52 | android:id="@+id/digit_6" |
| 53 | style="@style/PadButtonStyle.Numeric" |
Filipe Gonçalves | a12b3cf | 2016-05-31 13:37:26 +0100 | [diff] [blame] | 54 | android:onClick="onButtonClick" /> |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 55 | |
| 56 | <Button |
| 57 | android:id="@+id/digit_1" |
| 58 | style="@style/PadButtonStyle.Numeric" |
Filipe Gonçalves | a12b3cf | 2016-05-31 13:37:26 +0100 | [diff] [blame] | 59 | android:onClick="onButtonClick" /> |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 60 | |
| 61 | <Button |
| 62 | android:id="@+id/digit_2" |
| 63 | style="@style/PadButtonStyle.Numeric" |
Filipe Gonçalves | a12b3cf | 2016-05-31 13:37:26 +0100 | [diff] [blame] | 64 | android:onClick="onButtonClick" /> |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 65 | |
| 66 | <Button |
| 67 | android:id="@+id/digit_3" |
| 68 | style="@style/PadButtonStyle.Numeric" |
Filipe Gonçalves | a12b3cf | 2016-05-31 13:37:26 +0100 | [diff] [blame] | 69 | android:onClick="onButtonClick" /> |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 70 | |
| 71 | <Button |
| 72 | android:id="@+id/dec_point" |
| 73 | style="@style/PadButtonStyle.Numeric" |
Filipe Gonçalves | a12b3cf | 2016-05-31 13:37:26 +0100 | [diff] [blame] | 74 | android:onClick="onButtonClick" /> |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 75 | |
| 76 | <Button |
| 77 | android:id="@+id/digit_0" |
| 78 | style="@style/PadButtonStyle.Numeric" |
Filipe Gonçalves | a12b3cf | 2016-05-31 13:37:26 +0100 | [diff] [blame] | 79 | android:onClick="onButtonClick" /> |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 80 | |
| 81 | <Button |
| 82 | android:id="@+id/eq" |
| 83 | style="@style/PadButtonStyle.Numeric.Equals" |
| 84 | android:contentDescription="@string/desc_eq" |
| 85 | android:onClick="onButtonClick" |
| 86 | android:text="@string/eq" /> |
| 87 | |
Filipe Gonçalves | a12b3cf | 2016-05-31 13:37:26 +0100 | [diff] [blame] | 88 | </com.android.calculator2.CalculatorNumericPadLayout> |