blob: df6f527e936193536d423e1f666a133877c0b747 [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"
Ihab Awad526c0b82014-02-27 12:55:36 -080022 android:layout_height="wrap_content"
23 android:paddingLeft="5dp"
24 android:paddingRight="5dp"
Ihab Awad526c0b82014-02-27 12:55:36 -080025 android:stretchColumns="*"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070026 android:layoutDirection="ltr" >
Chiao Cheng94b10b52012-08-17 16:59:12 -070027
Ihab Awad526c0b82014-02-27 12:55:36 -080028 <TableRow>
Yorke Lee8898cd02013-08-08 10:24:27 -070029 <com.android.dialer.dialpad.DialpadKeyButton
Yorke Lee8898cd02013-08-08 10:24:27 -070030 android:id="@+id/one"
Ihab Awad526c0b82014-02-27 12:55:36 -080031 style="@style/DialpadKeyButtonStyle">
Yorke Lee77840872013-09-06 12:08:08 -070032 <LinearLayout
Ihab Awad526c0b82014-02-27 12:55:36 -080033 style="@style/DialpadKeyInternalLayoutStyle">
Yorke Lee77840872013-09-06 12:08:08 -070034 <TextView
35 android:id="@+id/dialpad_key_number"
Ihab Awad526c0b82014-02-27 12:55:36 -080036 style="@style/DialpadKeyNumberStyle"/>
Yorke Lee77840872013-09-06 12:08:08 -070037 <ImageView
38 android:id="@+id/dialpad_key_voicemail"
Ihab Awad526c0b82014-02-27 12:55:36 -080039 style="@style/DialpadKeyLettersStyle"
Yorke Lee77840872013-09-06 12:08:08 -070040 android:src="@drawable/ic_dial_action_vm"
Yorke Lee77840872013-09-06 12:08:08 -070041 android:scaleType="fitStart"
42 android:baselineAlignBottom="true" />
43 </LinearLayout>
Yorke Lee8898cd02013-08-08 10:24:27 -070044 </com.android.dialer.dialpad.DialpadKeyButton>
Yorke Leea5d5cdf2014-04-22 17:20:00 -070045 <include layout="@layout/dialpad_key"
46 android:id="@+id/two"
47 style="@style/DialpadKeyButtonStyle" />
48 <include layout="@layout/dialpad_key"
49 android:id="@+id/three"
50 style="@style/DialpadKeyButtonStyle" />
Chiao Cheng94b10b52012-08-17 16:59:12 -070051 </TableRow>
52
Ihab Awad526c0b82014-02-27 12:55:36 -080053 <TableRow>
Yorke Leea5d5cdf2014-04-22 17:20:00 -070054 <include layout="@layout/dialpad_key"
55 android:id="@+id/four"
56 style="@style/DialpadKeyButtonStyle" />
57 <include layout="@layout/dialpad_key"
58 android:id="@+id/five"
59 style="@style/DialpadKeyButtonStyle" />
60 <include layout="@layout/dialpad_key"
61 android:id="@+id/six"
62 style="@style/DialpadKeyButtonStyle" />
Chiao Cheng94b10b52012-08-17 16:59:12 -070063 </TableRow>
64
Ihab Awad526c0b82014-02-27 12:55:36 -080065 <TableRow>
Yorke Leea5d5cdf2014-04-22 17:20:00 -070066 <include layout="@layout/dialpad_key"
67 android:id="@+id/seven"
68 style="@style/DialpadKeyButtonStyle" />
69 <include layout="@layout/dialpad_key"
70 android:id="@+id/eight"
71 style="@style/DialpadKeyButtonStyle" />
72 <include layout="@layout/dialpad_key"
73 android:id="@+id/nine"
74 style="@style/DialpadKeyButtonStyle" />
Chiao Cheng94b10b52012-08-17 16:59:12 -070075 </TableRow>
76
Ihab Awad526c0b82014-02-27 12:55:36 -080077 <TableRow>
Yorke Lee8898cd02013-08-08 10:24:27 -070078 <com.android.dialer.dialpad.DialpadKeyButton
Yorke Lee8898cd02013-08-08 10:24:27 -070079 android:id="@+id/star"
Ihab Awad526c0b82014-02-27 12:55:36 -080080 style="@style/DialpadKeyButtonStyle">
81 <LinearLayout
82 style="@style/DialpadKeyInternalLayoutStyle">
83 <TextView
84 android:id="@id/dialpad_key_number"
85 style="@style/DialpadKeyStarPoundStyle" />
86 <View
87 android:layout_height="match_parent"
88 android:layout_width="@dimen/dialpad_key_letters_width" />
89 </LinearLayout>
Yorke Lee8898cd02013-08-08 10:24:27 -070090 </com.android.dialer.dialpad.DialpadKeyButton>
Yorke Leea5d5cdf2014-04-22 17:20:00 -070091 <include layout="@layout/dialpad_key"
92 android:id="@+id/zero"
93 style="@style/DialpadKeyButtonStyle" />
Yorke Lee8898cd02013-08-08 10:24:27 -070094 <com.android.dialer.dialpad.DialpadKeyButton
Yorke Lee8898cd02013-08-08 10:24:27 -070095 android:id="@+id/pound"
Ihab Awad526c0b82014-02-27 12:55:36 -080096 style="@style/DialpadKeyButtonStyle">
97 <LinearLayout
98 style="@style/DialpadKeyInternalLayoutStyle">
99 <TextView
100 android:id="@id/dialpad_key_number"
101 style="@style/DialpadKeyStarPoundStyle" />
102 <View
103 android:layout_height="match_parent"
104 android:layout_width="@dimen/dialpad_key_letters_width" />
105 </LinearLayout>
Yorke Lee8898cd02013-08-08 10:24:27 -0700106 </com.android.dialer.dialpad.DialpadKeyButton>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700107 </TableRow>
Yorke Leea5d5cdf2014-04-22 17:20:00 -0700108
109 <TableRow>
110 <FrameLayout
111 android:id="@+id/dialpad_add_contact"
112 android:contentDescription="@string/description_add_contact"
113 style="@style/DialpadBottomKeyButtonStyle"
114 android:visibility="invisible"
115 >
116 <ImageView
117 android:src="@drawable/ic_add_person_dk"
118 android:importantForAccessibility="no"
119 android:paddingRight="@dimen/dialpad_key_letters_width"
120 style="@style/DialpadKeyInternalLayoutStyle"
121 />
122 </FrameLayout>
123 <Space
124 style="@style/DialpadBottomKeyButtonStyle"
125 />
126 <FrameLayout
127 android:id="@+id/dialpad_overflow"
128 android:contentDescription="@string/description_dialpad_overflow"
129 style="@style/DialpadBottomKeyButtonStyle"
130 >
131 <ImageView
132 android:src="@drawable/ic_overflow_menu"
133 android:importantForAccessibility="no"
134 android:paddingRight="@dimen/dialpad_key_letters_width"
135 style="@style/DialpadKeyInternalLayoutStyle"
136 />
137 </FrameLayout>
138 </TableRow>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700139</TableLayout>