Home | History | Annotate | Download | only in layout
      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.CalculatorPadLayout
     19     xmlns:android="http://schemas.android.com/apk/res/android"
     20     android:id="@+id/pad_operator"
     21     style="@style/PadLayoutStyle.Operator"
     22     android:background="@color/pad_operator_background_color"
     23     android:columnCount="2"
     24     android:rowCount="4">
     25 
     26     <Button
     27         android:id="@+id/op_div"
     28         style="@style/PadButtonStyle.Operator"
     29         android:contentDescription="@string/desc_op_div"
     30         android:onClick="onButtonClick"
     31         android:text="@string/op_div" />
     32 
     33     <Button
     34         android:id="@+id/del"
     35         style="@style/PadButtonStyle.Operator.Text"
     36         android:contentDescription="@string/desc_del"
     37         android:onClick="onButtonClick"
     38         android:text="@string/del" />
     39 
     40     <Button
     41         android:id="@+id/clr"
     42         style="@style/PadButtonStyle.Operator.Text"
     43         android:contentDescription="@string/desc_clr"
     44         android:onClick="onButtonClick"
     45         android:text="@string/clr"
     46         android:visibility="gone" />
     47 
     48     <Button
     49         android:id="@+id/op_mul"
     50         style="@style/PadButtonStyle.Operator"
     51         android:contentDescription="@string/op_mul"
     52         android:onClick="onButtonClick"
     53         android:text="@string/op_mul" />
     54 
     55     <Space style="@style/PadButtonStyle.Operator" />
     56 
     57     <Button
     58         android:id="@+id/op_sub"
     59         style="@style/PadButtonStyle.Operator"
     60         android:contentDescription="@string/desc_op_sub"
     61         android:onClick="onButtonClick"
     62         android:text="@string/op_sub" />
     63 
     64     <Space style="@style/PadButtonStyle.Operator" />
     65 
     66     <Button
     67         android:id="@+id/op_add"
     68         style="@style/PadButtonStyle.Operator"
     69         android:contentDescription="@string/desc_op_add"
     70         android:onClick="onButtonClick"
     71         android:text="@string/op_add" />
     72 
     73     <Button
     74         android:id="@+id/eq"
     75         style="@style/PadButtonStyle.Operator"
     76         android:contentDescription="@string/desc_eq"
     77         android:onClick="onButtonClick"
     78         android:text="@string/eq" />
     79 
     80 </com.android.calculator2.CalculatorPadLayout>
     81