blob: ec850c971f28c77249068a410fae93e1ca52362f [file] [log] [blame]
Chiao Cheng94b10b52012-08-17 16:59:12 -07001<?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"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070026 android:paddingStart="5dip"
27 android:paddingEnd="5dip"
Chiao Cheng94b10b52012-08-17 16:59:12 -070028 android:paddingBottom="10dip"
Yorke Lee8898cd02013-08-08 10:24:27 -070029 android:stretchColumns="0,1,2"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070030 android:layoutDirection="ltr" >
Chiao Cheng94b10b52012-08-17 16:59:12 -070031
32 <TableRow
Yorke Lee8898cd02013-08-08 10:24:27 -070033 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" >
Yorke Lee77840872013-09-06 12:08:08 -070040 <LinearLayout
Yorke Lee8898cd02013-08-08 10:24:27 -070041 android:layout_width="wrap_content"
Yorke Lee77840872013-09-06 12:08:08 -070042 android:layout_height="match_parent"
43 android:layout_gravity="center" >
44 <TextView
45 android:id="@+id/dialpad_key_number"
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:textColor="@color/dialpad_primary_text_color"
49 android:textSize="@dimen/dialpad_key_numbers_size"
50 android:fontFamily="sans-serif-light"/>
51 <ImageView
52 android:id="@+id/dialpad_key_voicemail"
53 android:layout_width="@dimen/dialpad_key_letters_width"
54 android:layout_height="wrap_content"
55 android:src="@drawable/ic_dial_action_vm"
56 android:paddingLeft="11dp"
57 android:scaleType="fitStart"
58 android:baselineAlignBottom="true" />
59 </LinearLayout>
Yorke Lee8898cd02013-08-08 10:24:27 -070060 </com.android.dialer.dialpad.DialpadKeyButton>
61 <include layout="@layout/dialpad_key" android:id="@+id/two"/>
62 <include layout="@layout/dialpad_key" android:id="@+id/three"/>
Chiao Cheng94b10b52012-08-17 16:59:12 -070063 </TableRow>
64
65 <TableRow
Yorke Lee8898cd02013-08-08 10:24:27 -070066 android:layout_height="0px"
67 android:layout_weight="1">
68 <include layout="@layout/dialpad_key" android:id="@+id/four"/>
69 <include layout="@layout/dialpad_key" android:id="@+id/five"/>
70 <include layout="@layout/dialpad_key" android:id="@+id/six"/>
Chiao Cheng94b10b52012-08-17 16:59:12 -070071 </TableRow>
72
73 <TableRow
Yorke Lee8898cd02013-08-08 10:24:27 -070074 android:layout_height="0px"
75 android:layout_weight="1">
76 <include layout="@layout/dialpad_key" android:id="@+id/seven"/>
77 <include layout="@layout/dialpad_key" android:id="@+id/eight"/>
78 <include layout="@layout/dialpad_key" android:id="@+id/nine"/>
Chiao Cheng94b10b52012-08-17 16:59:12 -070079 </TableRow>
80
81 <TableRow
Yorke Lee8898cd02013-08-08 10:24:27 -070082 android:layout_height="0px"
83 android:layout_weight="1">
84 <com.android.dialer.dialpad.DialpadKeyButton
85 xmlns:android="http://schemas.android.com/apk/res/android"
86 android:id="@+id/star"
87 style="@style/DialtactsDialpadButtonStyle"
88 android:clickable="true" >
89 <TextView
90 android:id="@id/dialpad_key_number"
91 android:layout_width="wrap_content"
92 android:layout_height="wrap_content"
93 android:textColor="@color/dialpad_secondary_text_color"
94 android:textSize="@dimen/dialpad_key_special_characters_size"
95 android:fontFamily="sans-serif-light"
Yorke Lee77840872013-09-06 12:08:08 -070096 android:paddingRight="@dimen/dialpad_key_letters_width"
97 android:layout_gravity="center" />
Yorke Lee8898cd02013-08-08 10:24:27 -070098 </com.android.dialer.dialpad.DialpadKeyButton>
99 <include layout="@layout/dialpad_key" android:id="@+id/zero"/>
100 <com.android.dialer.dialpad.DialpadKeyButton
101 xmlns:android="http://schemas.android.com/apk/res/android"
102 android:id="@+id/pound"
103 style="@style/DialtactsDialpadButtonStyle"
104 android:clickable="true" >
105 <TextView
106 android:id="@id/dialpad_key_number"
107 android:layout_width="wrap_content"
108 android:layout_height="wrap_content"
109 android:textColor="@color/dialpad_secondary_text_color"
110 android:textSize="@dimen/dialpad_key_special_characters_size"
111 android:fontFamily="sans-serif-light"
Yorke Lee77840872013-09-06 12:08:08 -0700112 android:paddingRight="@dimen/dialpad_key_letters_width"
113 android:layout_gravity="center" />
Yorke Lee8898cd02013-08-08 10:24:27 -0700114 </com.android.dialer.dialpad.DialpadKeyButton>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700115 </TableRow>
116</TableLayout>