blob: c75d295508bd03c795d930543e4f12648f85df75 [file] [log] [blame]
Michael Kolbfe251992010-07-08 15:41:55 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3/* //device/apps/common/assets/res/any/layout/simple_spinner_item.xml
4**
Michael Kolb513286f2010-09-09 12:55:12 -07005** Copyright 2010, The Android Open Source Project
Michael Kolbfe251992010-07-08 15:41:55 -07006**
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 Reckad373302010-12-17 15:28:13 -080024 android:layout_height="48dip"
Michael Kolbfe251992010-07-08 15:41:55 -070025 android:orientation="horizontal"
26 android:gravity="center_vertical"
Michael Kolbd3e4d4f2010-10-15 10:58:44 -070027 android:baselineAligned="false"
jrizzoli3f57be02016-01-24 21:06:30 +010028 android:paddingStart="@dimen/suggestion_padding"
29 android:paddingEnd="@dimen/suggestion_padding"
Michael Kolbd3e4d4f2010-10-15 10:58:44 -070030 >
John Reckad373302010-12-17 15:28:13 -080031 <LinearLayout
32 android:id="@+id/suggestion"
Michael Kolbfe251992010-07-08 15:41:55 -070033 android:layout_width="0dip"
John Reckad373302010-12-17 15:28:13 -080034 android:layout_height="match_parent"
Michael Kolbfe251992010-07-08 15:41:55 -070035 android:layout_weight="1"
John Reckad373302010-12-17 15:28:13 -080036 android:orientation="horizontal"
John Reck288f79e2011-10-17 16:35:58 -070037 android:background="?android:attr/selectableItemBackground"
John Reck67f33632011-06-17 16:23:42 -070038 android:padding="0dp">
John Reckad373302010-12-17 15:28:13 -080039 <ImageView
40 android:layout_width="wrap_content"
Michael Kolbfe251992010-07-08 15:41:55 -070041 android:layout_height="wrap_content"
John Reckad373302010-12-17 15:28:13 -080042 android:id="@+id/icon1"
43 android:layout_gravity="center_vertical"
Vivek Sekhared791da2015-02-22 12:39:05 -080044 android:layout_marginStart="@dimen/suggest_item_padding"
45 android:layout_marginEnd="@dimen/suggest_item_padding" />
John Reckad373302010-12-17 15:28:13 -080046 <LinearLayout
47 android:layout_width="0dip"
48 android:layout_height="wrap_content"
49 android:layout_weight="1"
50 android:layout_gravity="center_vertical"
51 android:orientation="vertical">
52 <TextView
53 android:id="@android:id/text1"
54 style="@style/SuggestionLineMedium"
John Reck6a9afa92011-07-29 10:18:41 -070055 android:maxLines="1"
John Reckad373302010-12-17 15:28:13 -080056 android:layout_width="match_parent"
57 android:layout_height="wrap_content" />
58 <TextView
59 android:id="@android:id/text2"
60 style="@style/SuggestionLineSmall"
61 android:singleLine="true"
62 android:layout_width="match_parent"
John Reck7b8ed612011-02-18 14:01:06 -080063 android:layout_height="wrap_content" />
John Reckad373302010-12-17 15:28:13 -080064 </LinearLayout>
65 </LinearLayout>
Michael Kolb7b20ddd2010-10-14 15:03:28 -070066 <ImageView
67 android:layout_width="wrap_content"
Michael Kolb5a72f182011-01-13 20:35:06 -080068 android:layout_height="match_parent"
Michael Kolb7b20ddd2010-10-14 15:03:28 -070069 android:id="@+id/divider"
70 android:scaleType="center"
Tarun Nainani4dfc9852014-07-23 18:30:46 -070071 android:background="@drawable/list_divider_holo_light"
Michael Kolb7b20ddd2010-10-14 15:03:28 -070072 />
John Reckad373302010-12-17 15:28:13 -080073 <ImageView
Michael Kolb513286f2010-09-09 12:55:12 -070074 android:layout_width="wrap_content"
John Reck67f33632011-06-17 16:23:42 -070075 android:layout_height="match_parent"
Michael Kolb513286f2010-09-09 12:55:12 -070076 android:id="@+id/icon2"
77 android:scaleType="center"
Enrico Rosd6efa972014-12-02 19:49:59 -080078 android:src="@drawable/ic_action_querybuilder"
John Reck288f79e2011-10-17 16:35:58 -070079 android:background="?android:attr/selectableItemBackground"
Vivek Sekhared791da2015-02-22 12:39:05 -080080 android:paddingEnd="@dimen/suggest_item_padding"
81 android:paddingStart="@dimen/suggest_item_padding"
Michael Kolb513286f2010-09-09 12:55:12 -070082 />
Michael Kolbfe251992010-07-08 15:41:55 -070083</LinearLayout>