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_numeric"
     22     style="@style/PadLayoutStyle.Numeric"
     23     android:background="@color/pad_numeric_background_color"
     24     app:rowCount="4"
     25     app:columnCount="3">
     26 
     27     <Button
     28         android:id="@+id/digit_7"
     29         style="@style/PadButtonStyle.Numeric"
     30         android:text="@string/digit_7"
     31         app:layout_row="0"
     32         app:layout_column="0" />
     33 
     34     <Button
     35         android:id="@+id/digit_8"
     36         style="@style/PadButtonStyle.Numeric"
     37         android:text="@string/digit_8"
     38         app:layout_row="0"
     39         app:layout_column="1" />
     40 
     41     <Button
     42         android:id="@+id/digit_9"
     43         style="@style/PadButtonStyle.Numeric"
     44         android:text="@string/digit_9"
     45         app:layout_row="0"
     46         app:layout_column="2" />
     47 
     48     <Button
     49         android:id="@+id/digit_4"
     50         style="@style/PadButtonStyle.Numeric"
     51         android:text="@string/digit_4"
     52         app:layout_row="1"
     53         app:layout_column="0" />
     54 
     55     <Button
     56         android:id="@+id/digit_5"
     57         style="@style/PadButtonStyle.Numeric"
     58         android:text="@string/digit_5"
     59         app:layout_row="1"
     60         app:layout_column="1" />
     61 
     62     <Button
     63         android:id="@+id/digit_6"
     64         style="@style/PadButtonStyle.Numeric"
     65         android:text="@string/digit_6"
     66         app:layout_row="1"
     67         app:layout_column="2" />
     68 
     69     <Button
     70         android:id="@+id/digit_1"
     71         style="@style/PadButtonStyle.Numeric"
     72         android:text="@string/digit_1"
     73         app:layout_row="2"
     74         app:layout_column="0" />
     75 
     76     <Button
     77         android:id="@+id/digit_2"
     78         style="@style/PadButtonStyle.Numeric"
     79         android:text="@string/digit_2"
     80         app:layout_row="2"
     81         app:layout_column="1" />
     82 
     83     <Button
     84         android:id="@+id/digit_3"
     85         style="@style/PadButtonStyle.Numeric"
     86         android:text="@string/digit_3"
     87         app:layout_row="2"
     88         app:layout_column="2" />
     89 
     90     <Button
     91         android:id="@+id/dec_point"
     92         style="@style/PadButtonStyle.Numeric"
     93         android:contentDescription="@string/desc_dec_point"
     94         app:layout_row="3"
     95         app:layout_column="0" />
     96 
     97     <Button
     98         android:id="@+id/digit_0"
     99         style="@style/PadButtonStyle.Numeric"
    100         android:text="@string/digit_0"
    101         app:layout_row="3"
    102         app:layout_column="1" />
    103 
    104     <Button
    105         android:id="@+id/eq"
    106         style="@style/PadButtonStyle.Numeric.Equals"
    107         android:contentDescription="@string/desc_eq"
    108         android:text="@string/eq"
    109         app:layout_row="3"
    110         app:layout_column="2" />
    111 
    112 </android.support.v7.widget.GridLayout>
    113