blob: 4519a4693b0a0b625787b66c57ed4586d541f8ae [file] [log] [blame]
Doris Ling83a66212017-05-11 16:27:54 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2017 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
Doris Lingdf055c82017-07-06 15:21:31 -070018<LinearLayout
Doris Ling83a66212017-05-11 16:27:54 -070019 xmlns:android="http://schemas.android.com/apk/res/android"
20 style="@style/SuggestionConditionStyle"
21 android:layout_width="match_parent"
Doris Lingdf055c82017-07-06 15:21:31 -070022 android:layout_height="wrap_content"
23 android:orientation="vertical">
Doris Ling83a66212017-05-11 16:27:54 -070024
Doris Lingdf055c82017-07-06 15:21:31 -070025 <Space
26 android:id="@+id/top_space"
27 android:layout_width="match_parent"
28 android:layout_height="9dp"/>
Doris Ling83a66212017-05-11 16:27:54 -070029
Doris Lingdf055c82017-07-06 15:21:31 -070030 <RelativeLayout
31 android:layout_width="match_parent"
32 android:layout_height="35dp"
33 android:layout_centerHorizontal="true">
Doris Ling83a66212017-05-11 16:27:54 -070034
Doris Lingdf055c82017-07-06 15:21:31 -070035 <FrameLayout
36 android:id="@android:id/icon_frame"
37 android:layout_width="wrap_content"
38 android:layout_height="wrap_content"
39 android:layout_marginStart="24dp"
40 android:layout_centerVertical="true">
Doris Ling83a66212017-05-11 16:27:54 -070041
Doris Lingdf055c82017-07-06 15:21:31 -070042 <include layout="@layout/condition_header_icon" />
Doris Ling83a66212017-05-11 16:27:54 -070043
Doris Lingdf055c82017-07-06 15:21:31 -070044 </FrameLayout>
Doris Ling83a66212017-05-11 16:27:54 -070045
Doris Lingdf055c82017-07-06 15:21:31 -070046 <ImageView
47 android:id="@+id/expand_indicator"
48 android:layout_width="wrap_content"
49 android:layout_height="match_parent"
50 android:layout_alignParentEnd="true"
51 android:paddingTop="4dp"
52 android:paddingStart="16dp"
53 android:paddingEnd="16dp"
54 android:src="@drawable/ic_expand_more"/>
Doris Ling83a66212017-05-11 16:27:54 -070055
Doris Lingdf055c82017-07-06 15:21:31 -070056 <TextView
57 android:id="@android:id/summary"
58 android:layout_width="wrap_content"
59 android:layout_height="wrap_content"
60 android:layout_marginStart="8dp"
61 android:layout_toStartOf="@id/expand_indicator"
62 android:layout_centerVertical="true"
63 android:gravity="end"
64 android:textAppearance="@style/TextAppearance.SuggestionTitle"
65 android:textColor="?android:attr/colorAccent" />
Doris Ling83a66212017-05-11 16:27:54 -070066
Doris Lingdf055c82017-07-06 15:21:31 -070067 <TextView
68 android:id="@android:id/title"
69 android:layout_width="wrap_content"
70 android:layout_height="wrap_content"
71 android:layout_toEndOf="@android:id/icon_frame"
72 android:layout_toStartOf="@android:id/summary"
73 android:layout_centerVertical="true"
74 android:singleLine="true"
75 android:ellipsize="end"
76 android:textAppearance="@style/TextAppearance.SuggestionTitle"
77 android:textColor="?android:attr/colorAccent" />
78
79 <LinearLayout
80 android:id="@+id/additional_icons"
81 android:layout_width="wrap_content"
82 android:layout_height="match_parent"
83 android:layout_toStartOf="@android:id/summary"
84 android:layout_toEndOf="@android:id/icon_frame"
85 android:orientation="horizontal"
86 android:gravity="center_vertical"/>
87
88 </RelativeLayout>
89
90 <Space
91 android:layout_width="match_parent"
92 android:layout_height="12dp"/>
93
94</LinearLayout>