| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2014 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <merge xmlns:android="http://schemas.android.com/apk/res/android"> |
| <android.support.v17.leanback.widget.SpeechOrbView |
| android:id="@+id/lb_search_bar_speech_orb" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_centerVertical="true" |
| android:layout_marginStart="@dimen/lb_search_bar_speech_orb_margin_start" |
| android:focusable="true" |
| android:focusableInTouchMode="true" |
| > |
| <requestFocus/> |
| </android.support.v17.leanback.widget.SpeechOrbView> |
| |
| <RelativeLayout |
| android:id="@+id/lb_search_bar_items" |
| android:layout_width="@dimen/lb_search_bar_items_width" |
| android:layout_height="@dimen/lb_search_bar_items_height" |
| android:layout_toEndOf="@+id/lb_search_bar_speech_orb" |
| android:layout_centerVertical="true" |
| android:layout_marginStart="@dimen/lb_search_bar_items_margin_start" |
| android:layout_marginTop="@dimen/lb_search_bar_inner_margin_top" |
| android:layout_marginBottom="@dimen/lb_search_bar_inner_margin_bottom" |
| android:background="@drawable/lb_in_app_search_bg" |
| > |
| |
| <ImageView |
| android:id="@+id/lb_search_bar_badge" |
| android:layout_width="@dimen/lb_search_bar_icon_width" |
| android:layout_height="@dimen/lb_search_bar_icon_height" |
| android:layout_gravity="center_vertical|start" |
| android:layout_centerVertical="true" |
| android:layout_marginStart="@dimen/lb_search_bar_icon_margin_start" |
| android:src="@null" |
| android:visibility="gone" |
| style="?attr/browseTitleIconStyle"/> |
| |
| <android.support.v17.leanback.widget.SearchEditText |
| android:id="@+id/lb_search_text_editor" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical|end" |
| android:layout_marginStart="@dimen/lb_search_bar_edit_text_margin_start" |
| android:layout_centerVertical="true" |
| android:cursorVisible="true" |
| android:layout_toEndOf="@+id/lb_search_bar_badge" |
| android:editable="true" |
| android:background="@null" |
| android:fontFamily="sans-serif" |
| android:focusable="true" |
| android:focusableInTouchMode="true" |
| android:imeOptions="normal|flagNoExtractUi|actionSearch" |
| android:inputType="text|textAutoComplete" |
| android:singleLine="true" |
| android:textColor="@color/lb_search_bar_text" |
| android:textColorHint="@color/lb_search_bar_hint" |
| android:textCursorDrawable="@null" |
| android:hint="@string/lb_search_bar_hint" |
| android:textSize="@dimen/lb_search_bar_text_size"/> |
| </RelativeLayout> |
| </merge> |