blob: c13f525beeeee5e02bf426f7ed8dc05d41af6d12 [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 Awad3eb82152014-02-27 12:55:36 -080022 android:layout_height="wrap_content"
23 android:paddingLeft="5dp"
24 android:paddingRight="5dp"
Ihab Awad3eb82152014-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 Awad3eb82152014-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 Awad3eb82152014-02-27 12:55:36 -080031 style="@style/DialpadKeyButtonStyle">
Yorke Lee77840872013-09-06 12:08:08 -070032 <LinearLayout
Ihab Awad3eb82152014-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 Awad3eb82152014-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 Awad3eb82152014-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>
45 <include layout="@layout/dialpad_key" android:id="@+id/two"/>
46 <include layout="@layout/dialpad_key" android:id="@+id/three"/>
Chiao Cheng94b10b52012-08-17 16:59:12 -070047 </TableRow>
48
Ihab Awad3eb82152014-02-27 12:55:36 -080049 <TableRow>
Yorke Lee8898cd02013-08-08 10:24:27 -070050 <include layout="@layout/dialpad_key" android:id="@+id/four"/>
51 <include layout="@layout/dialpad_key" android:id="@+id/five"/>
52 <include layout="@layout/dialpad_key" android:id="@+id/six"/>
Chiao Cheng94b10b52012-08-17 16:59:12 -070053 </TableRow>
54
Ihab Awad3eb82152014-02-27 12:55:36 -080055 <TableRow>
Yorke Lee8898cd02013-08-08 10:24:27 -070056 <include layout="@layout/dialpad_key" android:id="@+id/seven"/>
57 <include layout="@layout/dialpad_key" android:id="@+id/eight"/>
58 <include layout="@layout/dialpad_key" android:id="@+id/nine"/>
Chiao Cheng94b10b52012-08-17 16:59:12 -070059 </TableRow>
60
Ihab Awad3eb82152014-02-27 12:55:36 -080061 <TableRow>
Yorke Lee8898cd02013-08-08 10:24:27 -070062 <com.android.dialer.dialpad.DialpadKeyButton
Yorke Lee8898cd02013-08-08 10:24:27 -070063 android:id="@+id/star"
Ihab Awad3eb82152014-02-27 12:55:36 -080064 style="@style/DialpadKeyButtonStyle">
65 <LinearLayout
66 style="@style/DialpadKeyInternalLayoutStyle">
67 <TextView
68 android:id="@id/dialpad_key_number"
69 style="@style/DialpadKeyStarPoundStyle" />
70 <View
71 android:layout_height="match_parent"
72 android:layout_width="@dimen/dialpad_key_letters_width" />
73 </LinearLayout>
Yorke Lee8898cd02013-08-08 10:24:27 -070074 </com.android.dialer.dialpad.DialpadKeyButton>
75 <include layout="@layout/dialpad_key" android:id="@+id/zero"/>
76 <com.android.dialer.dialpad.DialpadKeyButton
Yorke Lee8898cd02013-08-08 10:24:27 -070077 android:id="@+id/pound"
Ihab Awad3eb82152014-02-27 12:55:36 -080078 style="@style/DialpadKeyButtonStyle">
79 <LinearLayout
80 style="@style/DialpadKeyInternalLayoutStyle">
81 <TextView
82 android:id="@id/dialpad_key_number"
83 style="@style/DialpadKeyStarPoundStyle" />
84 <View
85 android:layout_height="match_parent"
86 android:layout_width="@dimen/dialpad_key_letters_width" />
87 </LinearLayout>
Yorke Lee8898cd02013-08-08 10:24:27 -070088 </com.android.dialer.dialpad.DialpadKeyButton>
Chiao Cheng94b10b52012-08-17 16:59:12 -070089 </TableRow>
90</TableLayout>