Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 1 | <?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 Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame] | 26 | android:paddingStart="5dip" |
| 27 | android:paddingEnd="5dip" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 28 | android:paddingBottom="10dip" |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 29 | android:stretchColumns="0,1,2" |
Fabrice Di Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame] | 30 | android:layoutDirection="ltr" > |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 31 | |
| 32 | <TableRow |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 33 | 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 Lee | 7784087 | 2013-09-06 12:08:08 -0700 | [diff] [blame] | 40 | <LinearLayout |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 41 | android:layout_width="wrap_content" |
Yorke Lee | 7784087 | 2013-09-06 12:08:08 -0700 | [diff] [blame] | 42 | 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 Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 60 | </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 Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 63 | </TableRow> |
| 64 | |
| 65 | <TableRow |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 66 | 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 Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 71 | </TableRow> |
| 72 | |
| 73 | <TableRow |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 74 | 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 Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 79 | </TableRow> |
| 80 | |
| 81 | <TableRow |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 82 | 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 Lee | 7784087 | 2013-09-06 12:08:08 -0700 | [diff] [blame] | 96 | android:paddingRight="@dimen/dialpad_key_letters_width" |
| 97 | android:layout_gravity="center" /> |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 98 | </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 Lee | 7784087 | 2013-09-06 12:08:08 -0700 | [diff] [blame] | 112 | android:paddingRight="@dimen/dialpad_key_letters_width" |
| 113 | android:layout_gravity="center" /> |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 114 | </com.android.dialer.dialpad.DialpadKeyButton> |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 115 | </TableRow> |
| 116 | </TableLayout> |