blob: 60240bc3f5b0d6a1cde732feafa1500e84d08579 [file] [log] [blame]
Yorke Lee6b049122013-07-16 10:38:02 -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"
26 android:paddingStart="5dip"
27 android:paddingEnd="5dip"
28 android:paddingBottom="10dip"
Yorke Leebf34a902013-07-24 19:00:04 -070029 android:stretchColumns="0,1,2"
Yorke Lee6b049122013-07-16 10:38:02 -070030 android:layoutDirection="ltr" >
31
32 <TableRow
Yorke Lee8e2a0682013-07-30 11:14:25 -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" >
40 <TextView
41 android:id="@+id/dialpad_key_number"
42 android:layout_width="wrap_content"
43 android:layout_height="wrap_content"
44 android:textColor="@color/dialpad_primary_text_color"
45 android:textSize="@dimen/dialpad_key_numbers_size"
46 android:fontFamily="sans-serif-light"
47 android:layout_centerInParent="true" />
48 <ImageView
49 android:id="@+id/dialpad_key_voicemail"
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
52 android:src="@drawable/ic_dial_action_vm"
53 android:paddingRight="11dp"
54 android:layout_alignBaseline="@id/dialpad_key_number"
55 android:baselineAlignBottom="true"
56 android:layout_alignParentRight="true" />
57 </com.android.dialer.dialpad.DialpadKeyButton>
Yorke Leebf34a902013-07-24 19:00:04 -070058 <include layout="@layout/dialpad_key" android:id="@+id/two"/>
59 <include layout="@layout/dialpad_key" android:id="@+id/three"/>
Yorke Lee6b049122013-07-16 10:38:02 -070060 </TableRow>
61
62 <TableRow
Yorke Lee8e2a0682013-07-30 11:14:25 -070063 android:layout_height="0px"
64 android:layout_weight="1">
Yorke Leebf34a902013-07-24 19:00:04 -070065 <include layout="@layout/dialpad_key" android:id="@+id/four"/>
66 <include layout="@layout/dialpad_key" android:id="@+id/five"/>
67 <include layout="@layout/dialpad_key" android:id="@+id/six"/>
Yorke Lee6b049122013-07-16 10:38:02 -070068 </TableRow>
69
70 <TableRow
Yorke Lee8e2a0682013-07-30 11:14:25 -070071 android:layout_height="0px"
72 android:layout_weight="1">
Yorke Leebf34a902013-07-24 19:00:04 -070073 <include layout="@layout/dialpad_key" android:id="@+id/seven"/>
74 <include layout="@layout/dialpad_key" android:id="@+id/eight"/>
75 <include layout="@layout/dialpad_key" android:id="@+id/nine"/>
Yorke Lee6b049122013-07-16 10:38:02 -070076 </TableRow>
77
78 <TableRow
Yorke Lee8e2a0682013-07-30 11:14:25 -070079 android:layout_height="0px"
80 android:layout_weight="1">
81 <com.android.dialer.dialpad.DialpadKeyButton
82 xmlns:android="http://schemas.android.com/apk/res/android"
83 android:id="@+id/star"
84 style="@style/DialtactsDialpadButtonStyle"
85 android:clickable="true" >
86 <TextView
87 android:id="@id/dialpad_key_number"
88 android:layout_width="wrap_content"
89 android:layout_height="wrap_content"
90 android:textColor="@color/dialpad_secondary_text_color"
91 android:textSize="@dimen/dialpad_key_special_characters_size"
92 android:fontFamily="sans-serif-light"
93 android:layout_centerInParent="true" />
94 </com.android.dialer.dialpad.DialpadKeyButton>
Yorke Leebf34a902013-07-24 19:00:04 -070095 <include layout="@layout/dialpad_key" android:id="@+id/zero"/>
Yorke Lee8e2a0682013-07-30 11:14:25 -070096 <com.android.dialer.dialpad.DialpadKeyButton
97 xmlns:android="http://schemas.android.com/apk/res/android"
98 android:id="@+id/pound"
99 style="@style/DialtactsDialpadButtonStyle"
100 android:clickable="true" >
101 <TextView
102 android:id="@id/dialpad_key_number"
103 android:layout_width="wrap_content"
104 android:layout_height="wrap_content"
105 android:textColor="@color/dialpad_secondary_text_color"
106 android:textSize="@dimen/dialpad_key_special_characters_size"
107 android:fontFamily="sans-serif-light"
108 android:layout_centerInParent="true" />
109 </com.android.dialer.dialpad.DialpadKeyButton>
Yorke Lee6b049122013-07-16 10:38:02 -0700110 </TableRow>
111</TableLayout>