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 | --> |
Ihab Awad | 526c0b8 | 2014-02-27 12:55:36 -0800 | [diff] [blame] | 16 | <LinearLayout |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
Yorke Lee | 86e21f7 | 2014-04-02 16:49:38 -0700 | [diff] [blame] | 18 | android:id="@+id/dialtacts_mainlayout" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="match_parent" |
Ihab Awad | 526c0b8 | 2014-02-27 12:55:36 -0800 | [diff] [blame] | 21 | android:orientation="vertical" |
Yorke Lee | 86e21f7 | 2014-04-02 16:49:38 -0700 | [diff] [blame] | 22 | android:focusable="true" |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 23 | android:focusableInTouchMode="true" |
| 24 | android:clipChildren="false" |
Yorke Lee | 9e91bb0 | 2014-03-05 17:50:50 -0800 | [diff] [blame] | 25 | android:background="@color/background_dialer_light" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 26 | > |
Yorke Lee | 86e21f7 | 2014-04-02 16:49:38 -0700 | [diff] [blame] | 27 | <RelativeLayout |
Ihab Awad | 526c0b8 | 2014-02-27 12:55:36 -0800 | [diff] [blame] | 28 | android:id="@+id/dialtacts_container" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 29 | android:layout_width="match_parent" |
Ihab Awad | 526c0b8 | 2014-02-27 12:55:36 -0800 | [diff] [blame] | 30 | android:layout_height="0dp" |
Yorke Lee | 86e21f7 | 2014-04-02 16:49:38 -0700 | [diff] [blame] | 31 | android:layout_weight="1" |
| 32 | android:clipChildren="false"> |
| 33 | <!-- The main contacts grid --> |
| 34 | <FrameLayout |
Ihab Awad | 526c0b8 | 2014-02-27 12:55:36 -0800 | [diff] [blame] | 35 | android:layout_height="match_parent" |
Yorke Lee | 86e21f7 | 2014-04-02 16:49:38 -0700 | [diff] [blame] | 36 | android:layout_width="match_parent" |
| 37 | android:id="@+id/dialtacts_frame" |
Ihab Awad | 526c0b8 | 2014-02-27 12:55:36 -0800 | [diff] [blame] | 38 | android:clipChildren="false" |
Yorke Lee | 86e21f7 | 2014-04-02 16:49:38 -0700 | [diff] [blame] | 39 | > |
| 40 | </FrameLayout> |
| 41 | <!-- Search entry box and remove view --> |
| 42 | <FrameLayout |
| 43 | android:layout_width="match_parent" |
| 44 | android:layout_height="wrap_content" |
| 45 | android:layout_alignParentTop="true" |
| 46 | android:id="@+id/search_and_remove_view_container" |
| 47 | android:visibility="gone" |
| 48 | > |
| 49 | <!-- TODO: This is set to visibility:gone for now, should be removed entirely --> |
| 50 | <LinearLayout |
Tyler Gunn | a8ff975 | 2014-02-24 11:57:57 -0800 | [diff] [blame] | 51 | android:layout_width="match_parent" |
Yorke Lee | 86e21f7 | 2014-04-02 16:49:38 -0700 | [diff] [blame] | 52 | android:layout_height="@dimen/search_box_height" |
| 53 | android:id="@+id/search_view_container" |
| 54 | android:orientation="horizontal" |
| 55 | android:layout_marginTop="@dimen/search_top_margin" |
| 56 | android:layout_marginBottom="@dimen/search_bottom_margin" |
| 57 | android:layout_marginLeft="@dimen/search_margin_horizontal" |
| 58 | android:layout_marginRight="@dimen/search_margin_horizontal" |
| 59 | android:paddingLeft="@dimen/search_box_left_padding" |
| 60 | android:paddingRight="@dimen/search_box_right_padding" |
| 61 | android:background="@drawable/search_bg" |
| 62 | android:gravity="center_vertical" |
| 63 | android:visibility="gone" |
Tyler Gunn | a8ff975 | 2014-02-24 11:57:57 -0800 | [diff] [blame] | 64 | > |
Yorke Lee | 86e21f7 | 2014-04-02 16:49:38 -0700 | [diff] [blame] | 65 | <EditText |
| 66 | android:id="@+id/search_view" |
Ihab Awad | 526c0b8 | 2014-02-27 12:55:36 -0800 | [diff] [blame] | 67 | android:layout_width="match_parent" |
Yorke Lee | 86e21f7 | 2014-04-02 16:49:38 -0700 | [diff] [blame] | 68 | android:layout_height="@dimen/search_box_icon_size" |
| 69 | android:layout_weight="1" |
| 70 | android:layout_marginLeft="@dimen/search_box_text_left_margin" |
| 71 | android:textSize="@dimen/search_text_size" |
| 72 | android:fontFamily="@string/search_font_family" |
| 73 | android:textColor="@color/searchbox_text_color" |
| 74 | android:textColorHint="@color/searchbox_hint_text_color" |
| 75 | android:inputType="textFilter"/> |
| 76 | <ImageView |
| 77 | android:id="@+id/search_close_button" |
| 78 | android:layout_height="@dimen/search_box_icon_size" |
| 79 | android:layout_width="@dimen/search_box_icon_size" |
| 80 | android:padding="6dp" |
| 81 | android:src="@drawable/ic_close_dk" |
| 82 | android:clickable="true" |
| 83 | android:background="?android:attr/selectableItemBackground" |
| 84 | android:contentDescription="@string/description_clear_search" |
| 85 | android:visibility="gone" /> |
| 86 | <ImageView |
| 87 | android:id="@+id/voice_search_button" |
| 88 | android:layout_height="@dimen/search_box_icon_size" |
| 89 | android:layout_width="@dimen/search_box_icon_size" |
| 90 | android:padding="@dimen/search_box_icon_padding" |
| 91 | android:src="@drawable/ic_voice_search" |
| 92 | android:clickable="true" |
| 93 | android:contentDescription="@string/description_start_voice_search" |
| 94 | android:background="?android:attr/selectableItemBackground" /> |
| 95 | </LinearLayout> |
| 96 | <com.android.dialer.list.RemoveView |
| 97 | android:layout_width="match_parent" |
| 98 | android:layout_height="56dp" |
| 99 | android:id="@+id/remove_view_container" |
| 100 | android:orientation="horizontal" |
| 101 | android:gravity="center"> |
| 102 | <ImageView |
| 103 | android:layout_width="wrap_content" |
| 104 | android:layout_height="wrap_content" |
| 105 | android:id="@+id/remove_view_icon" |
| 106 | android:src="@drawable/ic_remove" |
| 107 | android:contentDescription="@string/remove_contact" |
Ihab Awad | 526c0b8 | 2014-02-27 12:55:36 -0800 | [diff] [blame] | 108 | /> |
Yorke Lee | 86e21f7 | 2014-04-02 16:49:38 -0700 | [diff] [blame] | 109 | <TextView |
| 110 | android:layout_width="wrap_content" |
| 111 | android:layout_height="wrap_content" |
| 112 | android:id="@+id/remove_view_text" |
| 113 | android:textSize="@dimen/remove_text_size" |
| 114 | android:textColor="@color/remove_text_color" |
| 115 | android:text="@string/remove_contact" |
| 116 | /> |
| 117 | </com.android.dialer.list.RemoveView> |
| 118 | </FrameLayout> |
| 119 | </RelativeLayout> |
| 120 | <!-- TODO: To be removed entirely and replaced with a floating action button --> |
Ihab Awad | 526c0b8 | 2014-02-27 12:55:36 -0800 | [diff] [blame] | 121 | <FrameLayout |
| 122 | android:layout_height="@dimen/fake_action_bar_height" |
| 123 | android:layout_width="match_parent" |
| 124 | android:id="@+id/fake_action_bar" |
| 125 | android:background="@color/actionbar_background_color"> |
| 126 | <ImageButton |
| 127 | android:id="@+id/call_history_button" |
| 128 | android:layout_width="@dimen/fake_menu_button_min_width" |
| 129 | android:layout_height="match_parent" |
| 130 | android:layout_gravity="bottom|start" |
| 131 | android:background="?android:attr/selectableItemBackground" |
| 132 | android:contentDescription="@string/action_menu_call_history_description" |
| 133 | android:src="@drawable/ic_menu_history_lt"/> |
| 134 | <ImageButton |
| 135 | android:id="@+id/dialpad_button" |
| 136 | android:layout_width="@dimen/fake_menu_button_min_width" |
| 137 | android:layout_height="match_parent" |
| 138 | android:layout_gravity="bottom|center" |
| 139 | android:background="?android:attr/selectableItemBackground" |
| 140 | android:contentDescription="@string/action_menu_dialpad_button" |
| 141 | android:src="@drawable/ic_menu_dialpad_lt"/> |
| 142 | <ImageButton |
| 143 | android:id="@+id/dial_button" |
Yorke Lee | 86e21f7 | 2014-04-02 16:49:38 -0700 | [diff] [blame] | 144 | android:layout_width="@dimen/fake_action_bar_height" |
| 145 | android:layout_height="@dimen/fake_action_bar_height" |
Ihab Awad | 526c0b8 | 2014-02-27 12:55:36 -0800 | [diff] [blame] | 146 | android:layout_gravity="bottom|center" |
| 147 | android:background="@drawable/btn_call" |
| 148 | android:contentDescription="@string/description_dial_button" |
| 149 | android:src="@drawable/ic_dial_action_call" |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 150 | android:visibility="gone" /> |
Ihab Awad | 526c0b8 | 2014-02-27 12:55:36 -0800 | [diff] [blame] | 151 | <ImageButton |
Yorke Lee | 86e21f7 | 2014-04-02 16:49:38 -0700 | [diff] [blame] | 152 | android:id="@+id/overflow_menu_button" |
Ihab Awad | 526c0b8 | 2014-02-27 12:55:36 -0800 | [diff] [blame] | 153 | android:layout_width="@dimen/fake_menu_button_min_width" |
| 154 | android:layout_height="match_parent" |
| 155 | android:layout_gravity="bottom|end" |
Yorke Lee | 86e21f7 | 2014-04-02 16:49:38 -0700 | [diff] [blame] | 156 | android:visibility="gone" |
Ihab Awad | 526c0b8 | 2014-02-27 12:55:36 -0800 | [diff] [blame] | 157 | android:src="@drawable/ic_menu_overflow_lt" |
| 158 | android:contentDescription="@string/action_menu_overflow_description" |
| 159 | android:background="?android:attr/selectableItemBackground"/> |
| 160 | </FrameLayout> |
| 161 | </LinearLayout> |