Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3   Copyright (C) 2016 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:layout_width="match_parent"
     22     android:layout_height="match_parent"
     23     android:layoutDirection="ltr"
     24     app:rowCount="4"
     25     app:columnCount="3">
     26 
     27     <Button
     28         android:id="@+id/timer_setup_digit_1"
     29         style="@style/Widget.Button.TimerSetupDigit"
     30         android:layout_width="0dp"
     31         android:layout_height="0dp"
     32         app:layout_row="0"
     33         app:layout_rowWeight="1"
     34         app:layout_column="0"
     35         app:layout_columnWeight="1" />
     36 
     37     <Button
     38         android:id="@+id/timer_setup_digit_2"
     39         style="@style/Widget.Button.TimerSetupDigit"
     40         android:layout_width="0dp"
     41         android:layout_height="0dp"
     42         app:layout_row="0"
     43         app:layout_rowWeight="1"
     44         app:layout_column="1"
     45         app:layout_columnWeight="1" />
     46 
     47     <Button
     48         android:id="@+id/timer_setup_digit_3"
     49         style="@style/Widget.Button.TimerSetupDigit"
     50         android:layout_width="0dp"
     51         android:layout_height="0dp"
     52         app:layout_row="0"
     53         app:layout_rowWeight="1"
     54         app:layout_column="2"
     55         app:layout_columnWeight="1" />
     56 
     57     <Button
     58         android:id="@+id/timer_setup_digit_4"
     59         style="@style/Widget.Button.TimerSetupDigit"
     60         android:layout_width="0dp"
     61         android:layout_height="0dp"
     62         app:layout_row="1"
     63         app:layout_rowWeight="1"
     64         app:layout_column="0"
     65         app:layout_columnWeight="1" />
     66 
     67     <Button
     68         android:id="@+id/timer_setup_digit_5"
     69         style="@style/Widget.Button.TimerSetupDigit"
     70         android:layout_width="0dp"
     71         android:layout_height="0dp"
     72         app:layout_row="1"
     73         app:layout_rowWeight="1"
     74         app:layout_column="1"
     75         app:layout_columnWeight="1" />
     76 
     77     <Button
     78         android:id="@+id/timer_setup_digit_6"
     79         style="@style/Widget.Button.TimerSetupDigit"
     80         android:layout_width="0dp"
     81         android:layout_height="0dp"
     82         app:layout_row="1"
     83         app:layout_rowWeight="1"
     84         app:layout_column="2"
     85         app:layout_columnWeight="1" />
     86 
     87     <Button
     88         android:id="@+id/timer_setup_digit_7"
     89         style="@style/Widget.Button.TimerSetupDigit"
     90         android:layout_width="0dp"
     91         android:layout_height="0dp"
     92         app:layout_row="2"
     93         app:layout_rowWeight="1"
     94         app:layout_column="0"
     95         app:layout_columnWeight="1" />
     96 
     97     <Button
     98         android:id="@+id/timer_setup_digit_8"
     99         style="@style/Widget.Button.TimerSetupDigit"
    100         android:layout_width="0dp"
    101         android:layout_height="0dp"
    102         app:layout_row="2"
    103         app:layout_rowWeight="1"
    104         app:layout_column="1"
    105         app:layout_columnWeight="1" />
    106 
    107     <Button
    108         android:id="@+id/timer_setup_digit_9"
    109         style="@style/Widget.Button.TimerSetupDigit"
    110         android:layout_width="0dp"
    111         android:layout_height="0dp"
    112         app:layout_row="2"
    113         app:layout_rowWeight="1"
    114         app:layout_column="2"
    115         app:layout_columnWeight="1" />
    116 
    117     <Button
    118         android:id="@+id/timer_setup_digit_0"
    119         style="@style/Widget.Button.TimerSetupDigit"
    120         android:layout_width="0dp"
    121         android:layout_height="0dp"
    122         app:layout_row="3"
    123         app:layout_rowWeight="1"
    124         app:layout_column="1"
    125         app:layout_columnWeight="1" />
    126 
    127 </android.support.v7.widget.GridLayout>
    128