blob: 4fc3e83825928cb2a62f27aa99ba80b8ad5d629d [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"
Yorke Lee32faffb2013-10-06 16:49:41 -070039 android:clickable="true"
40 android:focusable="true" >
Yorke Lee77840872013-09-06 12:08:08 -070041 <LinearLayout
Yorke Lee8898cd02013-08-08 10:24:27 -070042 android:layout_width="wrap_content"
Yorke Leef786df02013-11-04 09:29:21 -080043 android:layout_height="wrap_content"
Yorke Lee77840872013-09-06 12:08:08 -070044 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>
Yorke Lee8898cd02013-08-08 10:24:27 -070061 </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"/>
Chiao Cheng94b10b52012-08-17 16:59:12 -070064 </TableRow>
65
66 <TableRow
Yorke Lee8898cd02013-08-08 10:24:27 -070067 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"/>
Chiao Cheng94b10b52012-08-17 16:59:12 -070072 </TableRow>
73
74 <TableRow
Yorke Lee8898cd02013-08-08 10:24:27 -070075 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"/>
Chiao Cheng94b10b52012-08-17 16:59:12 -070080 </TableRow>
81
82 <TableRow
Yorke Lee8898cd02013-08-08 10:24:27 -070083 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"
Yorke Lee32faffb2013-10-06 16:49:41 -070089 android:clickable="true"
90 android:focusable="true" >
Yorke Lee8898cd02013-08-08 10:24:27 -070091 <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"
Yorke Lee77840872013-09-06 12:08:08 -070098 android:paddingRight="@dimen/dialpad_key_letters_width"
99 android:layout_gravity="center" />
Yorke Lee8898cd02013-08-08 10:24:27 -0700100 </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"
Yorke Lee32faffb2013-10-06 16:49:41 -0700106 android:clickable="true"
107 android:focusable="true" >
Yorke Lee8898cd02013-08-08 10:24:27 -0700108 <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"
Yorke Lee77840872013-09-06 12:08:08 -0700115 android:paddingRight="@dimen/dialpad_key_letters_width"
116 android:layout_gravity="center" />
Yorke Lee8898cd02013-08-08 10:24:27 -0700117 </com.android.dialer.dialpad.DialpadKeyButton>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700118 </TableRow>
119</TableLayout>