Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2006 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 
     17 <!-- Dialpad in the Phone app. -->
     18 <TableLayout
     19     xmlns:android="http://schemas.android.com/apk/res/android"
     20     android:id="@+id/dialpad"
     21     android:layout_width="match_parent"
     22     android:layout_height="0px"
     23     android:layout_weight="@integer/dialpad_layout_weight_dialpad"
     24     android:layout_gravity="center_horizontal"
     25     android:layout_marginTop="@dimen/dialpad_vertical_margin"
     26     android:paddingStart="5dip"
     27     android:paddingEnd="5dip"
     28     android:paddingBottom="10dip"
     29     android:stretchColumns="0,1,2"
     30     android:layoutDirection="ltr" >
     31 
     32     <TableRow
     33         android:layout_height="0px"
     34         android:layout_weight="1">
     35         <com.android.dialer.dialpad.DialpadKeyButton
     36             xmlns:android="http://schemas.android.com/apk/res/android"
     37             android:id="@+id/one"
     38             style="@style/DialtactsDialpadButtonStyle"
     39             android:clickable="true"
     40             android:focusable="true" >
     41             <LinearLayout
     42                 android:layout_width="wrap_content"
     43                 android:layout_height="match_parent"
     44                 android:layout_gravity="center" >
     45                 <TextView
     46                     android:id="@+id/dialpad_key_number"
     47                     android:layout_width="wrap_content"
     48                     android:layout_height="wrap_content"
     49                     android:textColor="@color/dialpad_primary_text_color"
     50                     android:textSize="@dimen/dialpad_key_numbers_size"
     51                     android:fontFamily="sans-serif-light"/>
     52                 <ImageView
     53                     android:id="@+id/dialpad_key_voicemail"
     54                     android:layout_width="@dimen/dialpad_key_letters_width"
     55                     android:layout_height="wrap_content"
     56                     android:src="@drawable/ic_dial_action_vm"
     57                     android:paddingLeft="11dp"
     58                     android:scaleType="fitStart"
     59                     android:baselineAlignBottom="true" />
     60             </LinearLayout>
     61         </com.android.dialer.dialpad.DialpadKeyButton>
     62         <include layout="@layout/dialpad_key" android:id="@+id/two"/>
     63         <include layout="@layout/dialpad_key" android:id="@+id/three"/>
     64     </TableRow>
     65 
     66     <TableRow
     67         android:layout_height="0px"
     68         android:layout_weight="1">
     69         <include layout="@layout/dialpad_key" android:id="@+id/four"/>
     70         <include layout="@layout/dialpad_key" android:id="@+id/five"/>
     71         <include layout="@layout/dialpad_key" android:id="@+id/six"/>
     72     </TableRow>
     73 
     74     <TableRow
     75         android:layout_height="0px"
     76         android:layout_weight="1">
     77         <include layout="@layout/dialpad_key" android:id="@+id/seven"/>
     78         <include layout="@layout/dialpad_key" android:id="@+id/eight"/>
     79         <include layout="@layout/dialpad_key" android:id="@+id/nine"/>
     80     </TableRow>
     81 
     82     <TableRow
     83         android:layout_height="0px"
     84         android:layout_weight="1">
     85         <com.android.dialer.dialpad.DialpadKeyButton
     86             xmlns:android="http://schemas.android.com/apk/res/android"
     87             android:id="@+id/star"
     88             style="@style/DialtactsDialpadButtonStyle"
     89             android:clickable="true"
     90             android:focusable="true" >
     91             <TextView
     92                 android:id="@id/dialpad_key_number"
     93                 android:layout_width="wrap_content"
     94                 android:layout_height="wrap_content"
     95                 android:textColor="@color/dialpad_secondary_text_color"
     96                 android:textSize="@dimen/dialpad_key_special_characters_size"
     97                 android:fontFamily="sans-serif-light"
     98                 android:paddingRight="@dimen/dialpad_key_letters_width"
     99                 android:layout_gravity="center" />
    100         </com.android.dialer.dialpad.DialpadKeyButton>
    101         <include layout="@layout/dialpad_key" android:id="@+id/zero"/>
    102         <com.android.dialer.dialpad.DialpadKeyButton
    103             xmlns:android="http://schemas.android.com/apk/res/android"
    104             android:id="@+id/pound"
    105             style="@style/DialtactsDialpadButtonStyle"
    106             android:clickable="true"
    107             android:focusable="true" >
    108             <TextView
    109                 android:id="@id/dialpad_key_number"
    110                 android:layout_width="wrap_content"
    111                 android:layout_height="wrap_content"
    112                 android:textColor="@color/dialpad_secondary_text_color"
    113                 android:textSize="@dimen/dialpad_key_special_characters_size"
    114                 android:fontFamily="sans-serif-light"
    115                 android:paddingRight="@dimen/dialpad_key_letters_width"
    116                 android:layout_gravity="center" />
    117         </com.android.dialer.dialpad.DialpadKeyButton>
    118     </TableRow>
    119 </TableLayout>
    120