Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 2 | <!-- Copyright (C) 2013 The Android Open Source Project |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 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 | <FrameLayout |
| 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:focusable="true" |
| 21 | android:focusableInTouchMode="true" |
| 22 | android:clipChildren="false" |
| 23 | android:id="@+id/dialtacts_container" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 24 | > |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 25 | <!-- Overlapping dialpad fragment is inserted here --> |
| 26 | <LinearLayout |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 27 | android:layout_width="match_parent" |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 28 | android:layout_height="match_parent" |
| 29 | android:clipChildren="false" |
| 30 | android:orientation="vertical" > |
Yorke Lee | d5b5d0a | 2014-01-16 11:26:46 -0800 | [diff] [blame] | 31 | <FrameLayout |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 32 | android:layout_width="match_parent" |
| 33 | android:layout_height="wrap_content" |
Yorke Lee | 3957b27 | 2013-09-30 18:35:23 -0700 | [diff] [blame] | 34 | > |
| 35 | <LinearLayout |
| 36 | android:layout_width="match_parent" |
Tyler Gunn | f2e6bb6 | 2014-02-24 11:57:57 -0800 | [diff] [blame] | 37 | android:layout_height="@dimen/search_box_height" |
Yorke Lee | d5b5d0a | 2014-01-16 11:26:46 -0800 | [diff] [blame] | 38 | android:id="@+id/search_view_container" |
Yorke Lee | 3957b27 | 2013-09-30 18:35:23 -0700 | [diff] [blame] | 39 | android:orientation="horizontal" |
Tyler Gunn | f2e6bb6 | 2014-02-24 11:57:57 -0800 | [diff] [blame] | 40 | android:layout_marginTop="@dimen/search_top_margin" |
| 41 | android:layout_marginBottom="@dimen/search_bottom_margin" |
| 42 | android:layout_marginLeft="@dimen/search_margin_horizontal" |
| 43 | android:layout_marginRight="@dimen/search_margin_horizontal" |
| 44 | android:paddingLeft="@dimen/search_box_left_padding" |
| 45 | android:paddingRight="@dimen/search_box_right_padding" |
| 46 | android:background="@drawable/search_bg" |
Yorke Lee | d5b5d0a | 2014-01-16 11:26:46 -0800 | [diff] [blame] | 47 | android:gravity="center_vertical" |
| 48 | > |
Yorke Lee | 3957b27 | 2013-09-30 18:35:23 -0700 | [diff] [blame] | 49 | <EditText |
| 50 | android:id="@+id/search_view" |
Tyler Gunn | f2e6bb6 | 2014-02-24 11:57:57 -0800 | [diff] [blame] | 51 | android:layout_width="match_parent" |
| 52 | android:layout_height="@dimen/search_box_icon_size" |
Yorke Lee | 3957b27 | 2013-09-30 18:35:23 -0700 | [diff] [blame] | 53 | android:layout_weight="1" |
Tyler Gunn | f2e6bb6 | 2014-02-24 11:57:57 -0800 | [diff] [blame] | 54 | android:layout_marginLeft="@dimen/search_box_text_left_margin" |
Yorke Lee | 3957b27 | 2013-09-30 18:35:23 -0700 | [diff] [blame] | 55 | android:textSize="@dimen/search_text_size" |
Tyler Gunn | f2e6bb6 | 2014-02-24 11:57:57 -0800 | [diff] [blame] | 56 | android:fontFamily="@string/search_font_family" |
| 57 | android:textColor="@color/searchbox_text_color" |
Yorke Lee | 3957b27 | 2013-09-30 18:35:23 -0700 | [diff] [blame] | 58 | android:inputType="textFilter"/> |
| 59 | <ImageView |
| 60 | android:id="@+id/search_close_button" |
Tyler Gunn | f2e6bb6 | 2014-02-24 11:57:57 -0800 | [diff] [blame] | 61 | android:layout_height="@dimen/search_box_icon_size" |
| 62 | android:layout_width="@dimen/search_box_icon_size" |
Yorke Lee | 3957b27 | 2013-09-30 18:35:23 -0700 | [diff] [blame] | 63 | android:padding="6dp" |
| 64 | android:src="@drawable/ic_close_dk" |
| 65 | android:clickable="true" |
| 66 | android:background="?android:attr/selectableItemBackground" |
Yorke Lee | d5b5d0a | 2014-01-16 11:26:46 -0800 | [diff] [blame] | 67 | android:contentDescription="@string/description_clear_search" |
Yorke Lee | 3957b27 | 2013-09-30 18:35:23 -0700 | [diff] [blame] | 68 | android:visibility="gone" /> |
| 69 | <ImageView |
| 70 | android:id="@+id/voice_search_button" |
Tyler Gunn | f2e6bb6 | 2014-02-24 11:57:57 -0800 | [diff] [blame] | 71 | android:layout_height="@dimen/search_box_icon_size" |
| 72 | android:layout_width="@dimen/search_box_icon_size" |
| 73 | android:padding="@dimen/search_box_icon_padding" |
Yorke Lee | 3957b27 | 2013-09-30 18:35:23 -0700 | [diff] [blame] | 74 | android:src="@drawable/ic_voice_search" |
| 75 | android:clickable="true" |
| 76 | android:contentDescription="@string/description_start_voice_search" |
| 77 | android:background="?android:attr/selectableItemBackground" /> |
| 78 | </LinearLayout> |
Yorke Lee | d5b5d0a | 2014-01-16 11:26:46 -0800 | [diff] [blame] | 79 | <com.android.dialer.list.RemoveView |
Yorke Lee | 3957b27 | 2013-09-30 18:35:23 -0700 | [diff] [blame] | 80 | android:layout_width="match_parent" |
Yorke Lee | d5b5d0a | 2014-01-16 11:26:46 -0800 | [diff] [blame] | 81 | android:layout_height="56dp" |
| 82 | android:id="@+id/remove_view_container" |
| 83 | android:orientation="horizontal" |
| 84 | android:gravity="center" |
| 85 | android:visibility="gone"> |
| 86 | <ImageView |
| 87 | android:layout_width="wrap_content" |
| 88 | android:layout_height="wrap_content" |
| 89 | android:id="@+id/remove_view_icon" |
| 90 | android:src="@drawable/ic_remove" |
| 91 | android:contentDescription="@string/remove_contact" |
| 92 | /> |
| 93 | <TextView |
| 94 | android:layout_width="wrap_content" |
| 95 | android:layout_height="wrap_content" |
| 96 | android:id="@+id/remove_view_text" |
| 97 | android:textSize="@dimen/remove_text_size" |
| 98 | android:textColor="@color/remove_text_color" |
| 99 | android:text="@string/remove_contact" |
| 100 | /> |
| 101 | </com.android.dialer.list.RemoveView> |
| 102 | </FrameLayout> |
Tyler Gunn | f2e6bb6 | 2014-02-24 11:57:57 -0800 | [diff] [blame] | 103 | |
| 104 | <!-- Relative Layout is used to contain the main contacts grid and the thin translucent |
| 105 | horizontal divider line at the bottom of the contacts grid above the menu bar. --> |
| 106 | <RelativeLayout android:layout_width="match_parent" |
| 107 | android:layout_height="0dp" |
| 108 | android:layout_weight="1" |
| 109 | android:clipChildren="false" |
| 110 | > |
| 111 | <!-- The main contacts grid --> |
| 112 | <FrameLayout |
| 113 | android:layout_height="match_parent" |
| 114 | android:layout_width="match_parent" |
| 115 | android:id="@+id/dialtacts_frame" |
| 116 | android:clipChildren="false" |
| 117 | android:layout_alignParentBottom="true" |
| 118 | android:layout_alignParentTop="true" |
| 119 | android:layout_alignParentLeft="true" |
| 120 | android:layout_alignParentRight="true" |
| 121 | > |
| 122 | </FrameLayout> |
| 123 | <!-- Thin translucent horizontal line at the bottom of the contacts grid. Floats above |
| 124 | the contacts grid and has a translucent color. --> |
| 125 | <View |
| 126 | android:layout_height="2dp" |
| 127 | android:layout_width="match_parent" |
| 128 | android:background="@color/contacts_grid_bottom_border_color" |
| 129 | android:layout_alignParentBottom="true" |
| 130 | android:layout_alignParentLeft="true" |
| 131 | android:layout_alignParentRight="true" |
| 132 | /> |
| 133 | </RelativeLayout> |
| 134 | |
Yorke Lee | b207f8a | 2013-08-29 18:51:06 -0700 | [diff] [blame] | 135 | <FrameLayout |
Yorke Lee | 41a24b4 | 2013-11-13 16:14:41 -0800 | [diff] [blame] | 136 | android:layout_height="@dimen/fake_action_bar_height" |
| 137 | android:layout_width="match_parent" |
| 138 | android:id="@+id/fake_action_bar" |
| 139 | android:background="@color/actionbar_background_color"> |
| 140 | <ImageButton |
| 141 | android:id="@+id/call_history_button" |
| 142 | android:layout_width="@dimen/fake_menu_button_min_width" |
| 143 | android:layout_height="match_parent" |
| 144 | android:layout_gravity="bottom|start" |
| 145 | android:background="?android:attr/selectableItemBackground" |
| 146 | android:contentDescription="@string/action_menu_call_history_description" |
Tyler Gunn | f2e6bb6 | 2014-02-24 11:57:57 -0800 | [diff] [blame] | 147 | android:src="@drawable/ic_menu_history_lt"/> |
Yorke Lee | 41a24b4 | 2013-11-13 16:14:41 -0800 | [diff] [blame] | 148 | <ImageButton |
| 149 | android:id="@+id/dialpad_button" |
| 150 | android:layout_width="@dimen/fake_menu_button_min_width" |
| 151 | android:layout_height="match_parent" |
| 152 | android:layout_gravity="bottom|center" |
| 153 | android:background="?android:attr/selectableItemBackground" |
| 154 | android:contentDescription="@string/action_menu_dialpad_button" |
Tyler Gunn | f2e6bb6 | 2014-02-24 11:57:57 -0800 | [diff] [blame] | 155 | android:src="@drawable/ic_menu_dialpad_lt"/> |
Yorke Lee | 41a24b4 | 2013-11-13 16:14:41 -0800 | [diff] [blame] | 156 | <ImageButton |
| 157 | android:id="@+id/overflow_menu" |
| 158 | android:layout_width="@dimen/fake_menu_button_min_width" |
| 159 | android:layout_height="match_parent" |
| 160 | android:layout_gravity="bottom|end" |
Tyler Gunn | f2e6bb6 | 2014-02-24 11:57:57 -0800 | [diff] [blame] | 161 | android:src="@drawable/ic_menu_overflow_lt" |
Yorke Lee | 41a24b4 | 2013-11-13 16:14:41 -0800 | [diff] [blame] | 162 | android:contentDescription="@string/action_menu_overflow_description" |
| 163 | android:background="?android:attr/selectableItemBackground"/> |
| 164 | </FrameLayout> |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 165 | <View |
| 166 | android:id="@+id/dialtacts_bottom_padding" |
| 167 | android:layout_width="match_parent" |
| 168 | android:layout_height="?android:attr/actionBarSize" |
| 169 | android:visibility="gone" /> |
| 170 | </LinearLayout> |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 171 | </FrameLayout> |