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
18<com.android.calculator2.CalculatorNumericPadLayout
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"
29        android:onClick="onButtonClick" />
30
31    <Button
32        android:id="@+id/digit_8"
33        style="@style/PadButtonStyle.Numeric"
34        android:onClick="onButtonClick" />
35
36    <Button
37        android:id="@+id/digit_9"
38        style="@style/PadButtonStyle.Numeric"
39        android:onClick="onButtonClick" />
40
41    <Button
42        android:id="@+id/digit_4"
43        style="@style/PadButtonStyle.Numeric"
44        android:onClick="onButtonClick" />
45
46    <Button
47        android:id="@+id/digit_5"
48        style="@style/PadButtonStyle.Numeric"
49        android:onClick="onButtonClick" />
50
51    <Button
52        android:id="@+id/digit_6"
53        style="@style/PadButtonStyle.Numeric"
54        android:onClick="onButtonClick" />
55
56    <Button
57        android:id="@+id/digit_1"
58        style="@style/PadButtonStyle.Numeric"
59        android:onClick="onButtonClick" />
60
61    <Button
62        android:id="@+id/digit_2"
63        style="@style/PadButtonStyle.Numeric"
64        android:onClick="onButtonClick" />
65
66    <Button
67        android:id="@+id/digit_3"
68        style="@style/PadButtonStyle.Numeric"
69        android:onClick="onButtonClick" />
70
71    <Button
72        android:id="@+id/dec_point"
73        style="@style/PadButtonStyle.Numeric"
74        android:onClick="onButtonClick" />
75
76    <Button
77        android:id="@+id/digit_0"
78        style="@style/PadButtonStyle.Numeric"
79        android:onClick="onButtonClick" />
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
88</com.android.calculator2.CalculatorNumericPadLayout>
89