Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2011 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 | --> |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 16 | <view class="com.android.dialer.dialpad.DialpadFragment$DialpadSlidingLinearLayout" |
| 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 18 | android:layout_width="match_parent" |
| 19 | android:layout_height="match_parent" |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 20 | android:orientation="vertical" > |
| 21 | <!-- spacer view --> |
| 22 | <Space |
| 23 | android:layout_width="match_parent" |
| 24 | android:layout_height="0dp" |
| 25 | android:layout_weight="1" /> |
Yorke Lee | c45baec | 2013-09-05 18:25:48 -0700 | [diff] [blame^] | 26 | <view class="com.android.dialer.dialpad.DialpadFragment$HoverIgnoringLinearLayout" |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 27 | android:id="@+id/top" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 28 | android:layout_width="match_parent" |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 29 | android:layout_height="0dp" |
| 30 | android:layout_weight="2" |
| 31 | android:orientation="vertical" |
| 32 | android:paddingStart="@dimen/dialpad_horizontal_margin" |
| 33 | android:paddingEnd="@dimen/dialpad_horizontal_margin" |
| 34 | android:layoutDirection="ltr" |
| 35 | android:background="@color/background_dialpad" > |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 36 | |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 37 | |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 38 | <!-- Text field and possibly soft menu button above the keypad where |
| 39 | the digits are displayed. --> |
Yorke Lee | 3a18654 | 2013-05-07 11:59:36 -0700 | [diff] [blame] | 40 | <LinearLayout |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 41 | android:id="@+id/digits_container" |
Yorke Lee | 3a18654 | 2013-05-07 11:59:36 -0700 | [diff] [blame] | 42 | android:layout_width="match_parent" |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 43 | android:layout_height="0px" |
| 44 | android:layout_weight="@integer/dialpad_layout_weight_digits_new" |
| 45 | android:layout_marginTop="@dimen/dialpad_vertical_margin" |
| 46 | android:gravity="center" > |
| 47 | |
| 48 | <com.android.dialer.dialpad.DigitsEditText |
| 49 | android:id="@+id/digits" |
| 50 | android:layout_width="0dip" |
| 51 | android:layout_weight="1" |
| 52 | android:layout_height="match_parent" |
Yorke Lee | a394f11 | 2013-08-29 17:02:33 -0700 | [diff] [blame] | 53 | android:paddingLeft="10dp" |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 54 | android:gravity="center" |
Yorke Lee | a394f11 | 2013-08-29 17:02:33 -0700 | [diff] [blame] | 55 | android:scrollHorizontally="true" |
| 56 | android:singleLine="true" |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 57 | android:textAppearance="@style/DialtactsDigitsTextAppearance" |
| 58 | android:textColor="@color/dialpad_text_color" |
| 59 | android:nextFocusRight="@+id/overflow_menu" |
| 60 | android:background="@android:color/transparent" /> |
| 61 | |
| 62 | <ImageButton |
| 63 | android:id="@+id/deleteButton" |
| 64 | android:layout_width="56dip" |
| 65 | android:layout_height="match_parent" |
| 66 | android:layout_gravity="center_vertical" |
| 67 | android:gravity="center" |
| 68 | android:state_enabled="false" |
| 69 | android:background="?android:attr/selectableItemBackground" |
| 70 | android:contentDescription="@string/description_delete_button" |
| 71 | android:src="@drawable/ic_dial_action_delete" /> |
Yorke Lee | 3a18654 | 2013-05-07 11:59:36 -0700 | [diff] [blame] | 72 | </LinearLayout> |
Yorke Lee | 1be0178 | 2012-11-07 15:11:44 -0800 | [diff] [blame] | 73 | |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 74 | <!-- Keypad section --> |
| 75 | <include layout="@layout/dialpad" /> |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 76 | |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 77 | <View style="@style/DialpadHorizontalSeparator"/> |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 78 | |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 79 | <LinearLayout |
| 80 | android:id="@+id/dialButtonContainer" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 81 | android:layout_width="match_parent" |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 82 | android:layout_height="0px" |
| 83 | android:layout_weight="@integer/dialpad_layout_weight_additional_buttons" |
| 84 | android:layout_gravity="center_horizontal" |
Yorke Lee | 7dbcf18 | 2013-08-22 16:02:12 -0700 | [diff] [blame] | 85 | android:background="@color/dialpad_primary_text_color" |
| 86 | android:layoutDirection="locale"> |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 87 | <ImageButton |
| 88 | android:id="@+id/call_history_on_dialpad_button" |
Yorke Lee | 6ebbb02 | 2013-08-09 13:50:26 -0700 | [diff] [blame] | 89 | android:layout_height="match_parent" |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 90 | android:layout_width="@dimen/fake_menu_button_min_width" |
| 91 | android:layout_gravity="bottom|start" |
| 92 | android:background="@drawable/btn_call" |
| 93 | android:contentDescription="@string/action_menu_call_history_description" |
| 94 | android:src="@drawable/ic_menu_history_lt"/> |
| 95 | <ImageButton |
| 96 | android:id="@+id/dialButton" |
| 97 | android:layout_width="0dp" |
| 98 | android:layout_weight="1" |
| 99 | android:layout_height="match_parent" |
| 100 | android:layout_gravity="center" |
| 101 | android:state_enabled="false" |
| 102 | android:background="@drawable/btn_call" |
| 103 | android:contentDescription="@string/description_dial_button" |
| 104 | android:src="@drawable/ic_dial_action_call" /> |
| 105 | <ImageButton |
| 106 | android:id="@+id/overflow_menu_on_dialpad" |
Yorke Lee | 6ebbb02 | 2013-08-09 13:50:26 -0700 | [diff] [blame] | 107 | android:layout_height="match_parent" |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 108 | android:layout_width="@dimen/fake_menu_button_min_width" |
| 109 | android:layout_gravity="bottom|end" |
| 110 | android:background="@drawable/btn_call" |
| 111 | android:src="@drawable/ic_menu_overflow_lt" |
| 112 | android:contentDescription="@string/action_menu_overflow_description" /> |
| 113 | </LinearLayout> |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 114 | |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 115 | <!-- "Dialpad chooser" UI, shown only when the user brings up the |
| 116 | Dialer while a call is already in progress. |
| 117 | When this UI is visible, the other Dialer elements |
| 118 | (the textfield/button and the dialpad) are hidden. --> |
| 119 | <ListView android:id="@+id/dialpadChooser" |
| 120 | android:layout_width="match_parent" |
| 121 | android:layout_height="1dip" |
| 122 | android:layout_weight="1" |
| 123 | /> |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 124 | |
Yorke Lee | c45baec | 2013-09-05 18:25:48 -0700 | [diff] [blame^] | 125 | </view> |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 126 | </view> |