Yorke Lee | 6b04912 | 2013-07-16 10:38:02 -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" |
| 26 | android:paddingStart="5dip" |
| 27 | android:paddingEnd="5dip" |
| 28 | android:paddingBottom="10dip" |
Yorke Lee | bf34a90 | 2013-07-24 19:00:04 -0700 | [diff] [blame] | 29 | android:stretchColumns="0,1,2" |
Yorke Lee | 6b04912 | 2013-07-16 10:38:02 -0700 | [diff] [blame] | 30 | android:layoutDirection="ltr" > |
| 31 | |
| 32 | <TableRow |
Yorke Lee | 8e2a068 | 2013-07-30 11:14:25 -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" > |
| 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 Lee | bf34a90 | 2013-07-24 19:00:04 -0700 | [diff] [blame] | 58 | <include layout="@layout/dialpad_key" android:id="@+id/two"/> |
| 59 | <include layout="@layout/dialpad_key" android:id="@+id/three"/> |
Yorke Lee | 6b04912 | 2013-07-16 10:38:02 -0700 | [diff] [blame] | 60 | </TableRow> |
| 61 | |
| 62 | <TableRow |
Yorke Lee | 8e2a068 | 2013-07-30 11:14:25 -0700 | [diff] [blame] | 63 | android:layout_height="0px" |
| 64 | android:layout_weight="1"> |
Yorke Lee | bf34a90 | 2013-07-24 19:00:04 -0700 | [diff] [blame] | 65 | <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 Lee | 6b04912 | 2013-07-16 10:38:02 -0700 | [diff] [blame] | 68 | </TableRow> |
| 69 | |
| 70 | <TableRow |
Yorke Lee | 8e2a068 | 2013-07-30 11:14:25 -0700 | [diff] [blame] | 71 | android:layout_height="0px" |
| 72 | android:layout_weight="1"> |
Yorke Lee | bf34a90 | 2013-07-24 19:00:04 -0700 | [diff] [blame] | 73 | <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 Lee | 6b04912 | 2013-07-16 10:38:02 -0700 | [diff] [blame] | 76 | </TableRow> |
| 77 | |
| 78 | <TableRow |
Yorke Lee | 8e2a068 | 2013-07-30 11:14:25 -0700 | [diff] [blame] | 79 | 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 Lee | bf34a90 | 2013-07-24 19:00:04 -0700 | [diff] [blame] | 95 | <include layout="@layout/dialpad_key" android:id="@+id/zero"/> |
Yorke Lee | 8e2a068 | 2013-07-30 11:14:25 -0700 | [diff] [blame] | 96 | <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 Lee | 6b04912 | 2013-07-16 10:38:02 -0700 | [diff] [blame] | 110 | </TableRow> |
| 111 | </TableLayout> |