Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2016 The Android Open Source Project
      3 
      4 Licensed under the Apache License, Version 2.0 (the "License");
      5 you may not use this file except in compliance with the License.
      6 You may obtain a copy of the License at
      7 
      8   http://www.apache.org/licenses/LICENSE-2.0
      9 
     10 Unless required by applicable law or agreed to in writing, software
     11 distributed under the License is distributed on an "AS IS" BASIS,
     12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13 See the License for the specific language governing permissions and
     14 limitations under the License.
     15 -->
     16 <GridLayout
     17     xmlns:android="http://schemas.android.com/apk/res/android"
     18     xmlns:app="http://schemas.android.com/apk/res-auto"
     19     android:id="@+id/dialpad_layout"
     20     android:layout_width="wrap_content"
     21     android:layout_height="wrap_content"
     22     android:layout_gravity="center"
     23     android:columnCount="5">
     24 
     25     <!-- Row 1 -->
     26     <com.android.car.dialer.DialpadButton
     27         android:id="@+id/one"
     28         app:numberText="@string/one"
     29         app:image="@drawable/ic_voicemail"
     30         style="@style/DialpadKeyButtonStyle"/>
     31     <Space
     32         android:layout_width="@dimen/in_call_card_dialpad_horizontal_spacing"
     33         android:layout_height="0dp"/>
     34     <com.android.car.dialer.DialpadButton
     35         android:id="@+id/two"
     36         app:numberText="@string/two"
     37         app:letterText="@string/two_letters"
     38         style="@style/DialpadKeyButtonStyle"/>
     39     <Space
     40         android:layout_width="@dimen/in_call_card_dialpad_horizontal_spacing"
     41         android:layout_height="0dp"/>
     42     <com.android.car.dialer.DialpadButton
     43         android:id="@+id/three"
     44         app:numberText="@string/three"
     45         app:letterText="@string/three_letters"
     46         style="@style/DialpadKeyButtonStyle"/>
     47 
     48     <!-- Vertical spacing between rows. -->
     49     <Space
     50         android:layout_height="@dimen/in_call_card_dialpad_vertical_spacing"
     51         android:layout_width="0dp"
     52         android:layout_columnSpan="5" />
     53 
     54     <!-- Row 2 -->
     55     <com.android.car.dialer.DialpadButton
     56         android:id="@+id/four"
     57         app:numberText="@string/four"
     58         app:letterText="@string/four_letters"
     59         style="@style/DialpadKeyButtonStyle"/>
     60     <Space
     61         android:layout_width="@dimen/in_call_card_dialpad_horizontal_spacing"
     62         android:layout_height="0dp"/>
     63     <com.android.car.dialer.DialpadButton
     64         android:id="@+id/five"
     65         app:numberText="@string/five"
     66         app:letterText="@string/five_letters"
     67         style="@style/DialpadKeyButtonStyle"/>
     68     <Space
     69         android:layout_width="@dimen/in_call_card_dialpad_horizontal_spacing"
     70         android:layout_height="0dp"/>
     71     <com.android.car.dialer.DialpadButton
     72         android:id="@+id/six"
     73         app:numberText="@string/six"
     74         app:letterText="@string/six_letters"
     75         style="@style/DialpadKeyButtonStyle"/>
     76 
     77     <!-- Vertical spacing between rows. -->
     78     <Space
     79         android:layout_height="@dimen/in_call_card_dialpad_vertical_spacing"
     80         android:layout_width="0dp"
     81         android:layout_columnSpan="5" />
     82 
     83     <!-- Row 3 -->
     84     <com.android.car.dialer.DialpadButton
     85         android:id="@+id/seven"
     86         app:numberText="@string/seven"
     87         app:letterText="@string/seven_letters"
     88         style="@style/DialpadKeyButtonStyle"/>
     89     <Space
     90         android:layout_width="@dimen/in_call_card_dialpad_horizontal_spacing"
     91         android:layout_height="0dp"/>
     92     <com.android.car.dialer.DialpadButton
     93         android:id="@+id/eight"
     94         app:numberText="@string/eight"
     95         app:letterText="@string/eight_letters"
     96         style="@style/DialpadKeyButtonStyle"/>
     97     <Space
     98         android:layout_width="@dimen/in_call_card_dialpad_horizontal_spacing"
     99         android:layout_height="0dp"/>
    100     <com.android.car.dialer.DialpadButton
    101         android:id="@+id/nine"
    102         app:numberText="@string/nine"
    103         app:letterText="@string/nine_letters"
    104         style="@style/DialpadKeyButtonStyle"/>
    105 
    106     <!-- Vertical spacing between rows. -->
    107     <Space
    108         android:layout_height="@dimen/in_call_card_dialpad_vertical_spacing"
    109         android:layout_width="0dp"
    110         android:layout_columnSpan="5" />
    111 
    112     <!-- Row 4 -->
    113     <com.android.car.dialer.DialpadButton
    114         android:id="@+id/star"
    115         app:numberText="@string/star"
    116         app:letterText="@string/star_letters"
    117         style="@style/DialpadKeyButtonStyle"/>
    118     <Space
    119         android:layout_width="@dimen/in_call_card_dialpad_horizontal_spacing"
    120         android:layout_height="0dp"/>
    121     <com.android.car.dialer.DialpadButton
    122         android:id="@+id/zero"
    123         app:numberText="@string/zero"
    124         app:letterText="@string/zero_letters"
    125         style="@style/DialpadKeyButtonStyle"/>
    126     <Space
    127         android:layout_width="@dimen/in_call_card_dialpad_horizontal_spacing"
    128         android:layout_height="0dp"/>
    129     <com.android.car.dialer.DialpadButton
    130         android:id="@+id/pound"
    131         app:numberText="@string/pound"
    132         app:letterText="@string/pound_letters"
    133         style="@style/DialpadKeyButtonStyle"/>
    134 
    135 </GridLayout>
    136