Michael Kolb | fe25199 | 2010-07-08 15:41:55 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | /* //device/apps/common/assets/res/any/layout/simple_spinner_item.xml |
| 4 | ** |
Michael Kolb | 513286f | 2010-09-09 12:55:12 -0700 | [diff] [blame] | 5 | ** Copyright 2010, The Android Open Source Project |
Michael Kolb | fe25199 | 2010-07-08 15:41:55 -0700 | [diff] [blame] | 6 | ** |
| 7 | ** Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | ** you may not use this file except in compliance with the License. |
| 9 | ** You may obtain a copy of the License at |
| 10 | ** |
| 11 | ** http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | ** |
| 13 | ** Unless required by applicable law or agreed to in writing, software |
| 14 | ** distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | ** See the License for the specific language governing permissions and |
| 17 | ** limitations under the License. |
| 18 | */ |
| 19 | --> |
| 20 | |
| 21 | <LinearLayout |
| 22 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 23 | android:layout_width="match_parent" |
John Reck | ad37330 | 2010-12-17 15:28:13 -0800 | [diff] [blame] | 24 | android:layout_height="48dip" |
Michael Kolb | fe25199 | 2010-07-08 15:41:55 -0700 | [diff] [blame] | 25 | android:orientation="horizontal" |
| 26 | android:gravity="center_vertical" |
Michael Kolb | d3e4d4f | 2010-10-15 10:58:44 -0700 | [diff] [blame] | 27 | android:baselineAligned="false" |
| 28 | > |
John Reck | ad37330 | 2010-12-17 15:28:13 -0800 | [diff] [blame] | 29 | <LinearLayout |
| 30 | android:id="@+id/suggestion" |
Michael Kolb | fe25199 | 2010-07-08 15:41:55 -0700 | [diff] [blame] | 31 | android:layout_width="0dip" |
John Reck | ad37330 | 2010-12-17 15:28:13 -0800 | [diff] [blame] | 32 | android:layout_height="match_parent" |
Michael Kolb | fe25199 | 2010-07-08 15:41:55 -0700 | [diff] [blame] | 33 | android:layout_weight="1" |
John Reck | ad37330 | 2010-12-17 15:28:13 -0800 | [diff] [blame] | 34 | android:orientation="horizontal" |
John Reck | 288f79e | 2011-10-17 16:35:58 -0700 | [diff] [blame] | 35 | android:background="?android:attr/selectableItemBackground" |
John Reck | 67f3363 | 2011-06-17 16:23:42 -0700 | [diff] [blame] | 36 | android:padding="0dp"> |
John Reck | ad37330 | 2010-12-17 15:28:13 -0800 | [diff] [blame] | 37 | <ImageView |
| 38 | android:layout_width="wrap_content" |
Michael Kolb | fe25199 | 2010-07-08 15:41:55 -0700 | [diff] [blame] | 39 | android:layout_height="wrap_content" |
John Reck | ad37330 | 2010-12-17 15:28:13 -0800 | [diff] [blame] | 40 | android:id="@+id/icon1" |
| 41 | android:layout_gravity="center_vertical" |
Vivek Sekhar | ed791da | 2015-02-22 12:39:05 -0800 | [diff] [blame] | 42 | android:layout_marginStart="@dimen/suggest_item_padding" |
| 43 | android:layout_marginEnd="@dimen/suggest_item_padding" /> |
John Reck | ad37330 | 2010-12-17 15:28:13 -0800 | [diff] [blame] | 44 | <LinearLayout |
| 45 | android:layout_width="0dip" |
| 46 | android:layout_height="wrap_content" |
| 47 | android:layout_weight="1" |
| 48 | android:layout_gravity="center_vertical" |
| 49 | android:orientation="vertical"> |
| 50 | <TextView |
| 51 | android:id="@android:id/text1" |
| 52 | style="@style/SuggestionLineMedium" |
John Reck | 6a9afa9 | 2011-07-29 10:18:41 -0700 | [diff] [blame] | 53 | android:maxLines="1" |
John Reck | ad37330 | 2010-12-17 15:28:13 -0800 | [diff] [blame] | 54 | android:layout_width="match_parent" |
| 55 | android:layout_height="wrap_content" /> |
| 56 | <TextView |
| 57 | android:id="@android:id/text2" |
| 58 | style="@style/SuggestionLineSmall" |
| 59 | android:singleLine="true" |
| 60 | android:layout_width="match_parent" |
John Reck | 7b8ed61 | 2011-02-18 14:01:06 -0800 | [diff] [blame] | 61 | android:layout_height="wrap_content" /> |
John Reck | ad37330 | 2010-12-17 15:28:13 -0800 | [diff] [blame] | 62 | </LinearLayout> |
| 63 | </LinearLayout> |
Michael Kolb | 7b20ddd | 2010-10-14 15:03:28 -0700 | [diff] [blame] | 64 | <ImageView |
| 65 | android:layout_width="wrap_content" |
Michael Kolb | 5a72f18 | 2011-01-13 20:35:06 -0800 | [diff] [blame] | 66 | android:layout_height="match_parent" |
Michael Kolb | 7b20ddd | 2010-10-14 15:03:28 -0700 | [diff] [blame] | 67 | android:id="@+id/divider" |
| 68 | android:scaleType="center" |
Tarun Nainani | 4dfc985 | 2014-07-23 18:30:46 -0700 | [diff] [blame] | 69 | android:background="@drawable/list_divider_holo_light" |
Michael Kolb | 7b20ddd | 2010-10-14 15:03:28 -0700 | [diff] [blame] | 70 | /> |
John Reck | ad37330 | 2010-12-17 15:28:13 -0800 | [diff] [blame] | 71 | <ImageView |
Michael Kolb | 513286f | 2010-09-09 12:55:12 -0700 | [diff] [blame] | 72 | android:layout_width="wrap_content" |
John Reck | 67f3363 | 2011-06-17 16:23:42 -0700 | [diff] [blame] | 73 | android:layout_height="match_parent" |
Michael Kolb | 513286f | 2010-09-09 12:55:12 -0700 | [diff] [blame] | 74 | android:id="@+id/icon2" |
| 75 | android:scaleType="center" |
Enrico Ros | d6efa97 | 2014-12-02 19:49:59 -0800 | [diff] [blame] | 76 | android:src="@drawable/ic_action_querybuilder" |
John Reck | 288f79e | 2011-10-17 16:35:58 -0700 | [diff] [blame] | 77 | android:background="?android:attr/selectableItemBackground" |
Vivek Sekhar | ed791da | 2015-02-22 12:39:05 -0800 | [diff] [blame] | 78 | android:paddingEnd="@dimen/suggest_item_padding" |
| 79 | android:paddingStart="@dimen/suggest_item_padding" |
Michael Kolb | 513286f | 2010-09-09 12:55:12 -0700 | [diff] [blame] | 80 | /> |
Michael Kolb | fe25199 | 2010-07-08 15:41:55 -0700 | [diff] [blame] | 81 | </LinearLayout> |