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 <android.support.v7.widget.GridLayout
     19     xmlns:android="http://schemas.android.com/apk/res/android"
     20     xmlns:app="http://schemas.android.com/apk/res-auto"
     21     android:id="@+id/pad_operator"
     22     style="@style/PadLayoutStyle.Operator"
     23     android:background="@color/pad_operator_background_color"
     24     app:rowCount="5"
     25     app:columnCount="1">
     26 
     27     <Button
     28         android:id="@+id/del"
     29         style="@style/PadButtonStyle.Operator.Text"
     30         android:contentDescription="@string/desc_del"
     31         android:text="@string/del"
     32         app:layout_row="0"
     33         app:layout_column="0" />
     34 
     35     <Button
     36         android:id="@+id/clr"
     37         style="@style/PadButtonStyle.Operator.Text"
     38         android:contentDescription="@string/desc_clr"
     39         android:text="@string/clr"
     40         android:visibility="gone"
     41         app:layout_row="0"
     42         app:layout_column="0" />
     43 
     44 
     45     <Button
     46         android:id="@+id/op_div"
     47         style="@style/PadButtonStyle.Operator"
     48         android:contentDescription="@string/desc_op_div"
     49         android:text="@string/op_div"
     50         app:layout_row="1"
     51         app:layout_column="0" />
     52 
     53     <Button
     54         android:id="@+id/op_mul"
     55         style="@style/PadButtonStyle.Operator"
     56         android:contentDescription="@string/desc_op_mul"
     57         android:text="@string/op_mul"
     58         app:layout_row="2"
     59         app:layout_column="0" />
     60 
     61     <Button
     62         android:id="@+id/op_sub"
     63         style="@style/PadButtonStyle.Operator"
     64         android:contentDescription="@string/desc_op_sub"
     65         android:text="@string/op_sub"
     66         app:layout_row="3"
     67         app:layout_column="0" />
     68 
     69     <Button
     70         android:id="@+id/op_add"
     71         style="@style/PadButtonStyle.Operator"
     72         android:contentDescription="@string/desc_op_add"
     73         android:text="@string/op_add"
     74         app:layout_row="4"
     75         app:layout_column="0" />
     76 
     77 </android.support.v7.widget.GridLayout>
     78