Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2014 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | <merge xmlns:android="http://schemas.android.com/apk/res/android"> |
| 18 | <android.support.v17.leanback.widget.SpeechOrbView |
| 19 | android:id="@+id/lb_search_bar_speech_orb" |
| 20 | android:layout_width="wrap_content" |
| 21 | android:layout_height="wrap_content" |
| 22 | android:layout_centerVertical="true" |
| 23 | android:layout_marginLeft="@dimen/lb_search_bar_speech_orb_margin_left" |
| 24 | android:focusable="true" |
| 25 | android:focusableInTouchMode="true" |
| 26 | > |
| 27 | <requestFocus/> |
| 28 | </android.support.v17.leanback.widget.SpeechOrbView> |
| 29 | |
| 30 | <RelativeLayout |
| 31 | android:id="@+id/lb_search_bar_items" |
| 32 | android:layout_width="@dimen/lb_search_bar_items_width" |
| 33 | android:layout_height="@dimen/lb_search_bar_items_height" |
| 34 | android:layout_toRightOf="@+id/lb_search_bar_speech_orb" |
| 35 | android:layout_centerVertical="true" |
| 36 | android:layout_marginLeft="@dimen/lb_search_bar_items_margin_left" |
Qiwen Zhao | 7262689 | 2014-09-11 08:07:07 -0700 | [diff] [blame] | 37 | android:layout_marginTop="@dimen/lb_search_bar_inner_margin_top" |
| 38 | android:layout_marginBottom="@dimen/lb_search_bar_inner_margin_bottom" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 39 | android:background="@drawable/lb_in_app_search_bg" |
| 40 | > |
| 41 | |
| 42 | <ImageView |
| 43 | android:id="@+id/lb_search_bar_badge" |
| 44 | android:layout_width="@dimen/lb_search_bar_icon_width" |
| 45 | android:layout_height="@dimen/lb_search_bar_icon_height" |
| 46 | android:layout_gravity="center_vertical|left" |
| 47 | android:layout_centerVertical="true" |
| 48 | android:layout_marginLeft="@dimen/lb_search_bar_icon_margin_left" |
| 49 | android:src="@null" |
| 50 | android:visibility="gone" |
| 51 | style="?attr/browseTitleIconStyle"/> |
| 52 | |
| 53 | <android.support.v17.leanback.widget.SearchEditText |
| 54 | android:id="@+id/lb_search_text_editor" |
| 55 | android:layout_width="match_parent" |
| 56 | android:layout_height="wrap_content" |
| 57 | android:layout_gravity="center_vertical|right" |
| 58 | android:layout_marginLeft="@dimen/lb_search_bar_edit_text_margin_left" |
| 59 | android:layout_centerVertical="true" |
| 60 | android:cursorVisible="true" |
| 61 | android:layout_toRightOf="@+id/lb_search_bar_badge" |
| 62 | android:editable="true" |
| 63 | android:background="@null" |
| 64 | android:fontFamily="sans-serif" |
| 65 | android:focusable="true" |
| 66 | android:focusableInTouchMode="true" |
| 67 | android:imeOptions="normal|flagNoExtractUi|actionSearch" |
| 68 | android:inputType="text|textAutoComplete" |
| 69 | android:singleLine="true" |
Qiwen Zhao | 7262689 | 2014-09-11 08:07:07 -0700 | [diff] [blame] | 70 | android:textColor="@color/lb_search_bar_text" |
| 71 | android:textColorHint="@color/lb_search_bar_hint" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 72 | android:textCursorDrawable="@null" |
| 73 | android:hint="@string/lb_search_bar_hint" |
| 74 | android:textSize="@dimen/lb_search_bar_text_size"/> |
| 75 | </RelativeLayout> |
| 76 | </merge> |