Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | /* |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 4 | * Copyright (C) 2014 The Android Open Source Project |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 5 | * |
| 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | * you may not use this file except in compliance with the License. |
| 8 | * You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, software |
| 13 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | * See the License for the specific language governing permissions and |
| 16 | * limitations under the License. |
| 17 | */ |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 18 | --> |
| 19 | |
| 20 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 21 | android:layout_width="match_parent" |
Dharmesh Mokani | 86e84da | 2014-08-29 09:24:35 -0700 | [diff] [blame] | 22 | android:layout_height="58dip" |
| 23 | style="@style/RtlOverlay.Widget.AppCompat.Search.DropDown"> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 24 | |
| 25 | <!-- Icons come first in the layout, since their placement doesn't depend on |
| 26 | the placement of the text views. --> |
Alan Newberger | c776915 | 2014-10-24 11:08:49 -0700 | [diff] [blame^] | 27 | <android.support.v7.internal.widget.TintImageView |
| 28 | android:id="@android:id/icon1" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 29 | android:layout_width="@dimen/abc_dropdownitem_icon_width" |
| 30 | android:layout_height="48dip" |
| 31 | android:scaleType="centerInside" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 32 | android:layout_alignParentTop="true" |
| 33 | android:layout_alignParentBottom="true" |
Dharmesh Mokani | 86e84da | 2014-08-29 09:24:35 -0700 | [diff] [blame] | 34 | android:visibility="invisible" |
| 35 | style="@style/RtlOverlay.Widget.AppCompat.Search.DropDown.Icon1" /> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 36 | |
Alan Newberger | c776915 | 2014-10-24 11:08:49 -0700 | [diff] [blame^] | 37 | <android.support.v7.internal.widget.TintImageView |
| 38 | android:id="@+id/edit_query" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 39 | android:layout_width="48dip" |
| 40 | android:layout_height="48dip" |
| 41 | android:scaleType="centerInside" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 42 | android:layout_alignParentTop="true" |
| 43 | android:layout_alignParentBottom="true" |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 44 | android:background="?attr/selectableItemBackground" |
Dharmesh Mokani | 86e84da | 2014-08-29 09:24:35 -0700 | [diff] [blame] | 45 | android:visibility="gone" |
| 46 | style="@style/RtlOverlay.Widget.AppCompat.Search.DropDown.Query" /> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 47 | |
Alan Newberger | c776915 | 2014-10-24 11:08:49 -0700 | [diff] [blame^] | 48 | <android.support.v7.internal.widget.TintImageView |
| 49 | android:id="@id/android:icon2" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 50 | android:layout_width="48dip" |
| 51 | android:layout_height="48dip" |
| 52 | android:scaleType="centerInside" |
| 53 | android:layout_alignWithParentIfMissing="true" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 54 | android:layout_alignParentTop="true" |
| 55 | android:layout_alignParentBottom="true" |
Dharmesh Mokani | 86e84da | 2014-08-29 09:24:35 -0700 | [diff] [blame] | 56 | android:visibility="gone" |
| 57 | style="@style/RtlOverlay.Widget.AppCompat.Search.DropDown.Icon2" /> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 58 | |
| 59 | |
| 60 | <!-- The subtitle comes before the title, since the height of the title depends on whether the |
| 61 | subtitle is visible or gone. --> |
| 62 | <TextView android:id="@android:id/text2" |
| 63 | style="?android:attr/dropDownItemStyle" |
| 64 | android:textAppearance="?attr/textAppearanceSearchResultSubtitle" |
| 65 | android:singleLine="true" |
| 66 | android:layout_width="match_parent" |
| 67 | android:layout_height="29dip" |
| 68 | android:paddingBottom="4dip" |
| 69 | android:gravity="top" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 70 | android:layout_alignWithParentIfMissing="true" |
| 71 | android:layout_alignParentBottom="true" |
| 72 | android:visibility="gone" /> |
| 73 | |
| 74 | <!-- The title is placed above the subtitle, if there is one. If there is no |
| 75 | subtitle, it fills the parent. --> |
| 76 | <TextView android:id="@android:id/text1" |
| 77 | style="?android:attr/dropDownItemStyle" |
| 78 | android:textAppearance="?attr/textAppearanceSearchResultTitle" |
| 79 | android:singleLine="true" |
| 80 | android:layout_width="match_parent" |
| 81 | android:layout_height="wrap_content" |
| 82 | android:layout_centerVertical="true" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 83 | android:layout_above="@android:id/text2" /> |
| 84 | |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 85 | </RelativeLayout> |