blob: f2143193aced8b4453d7a22c090ee30eed7da309 [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"
Doris Ling0018f162017-07-14 11:45:54 -070023 android:paddingTop="10dp"
24 android:paddingBottom="10dp"
Doris Lingdf055c82017-07-06 15:21:31 -070025 android:orientation="vertical">
Doris Ling83a66212017-05-11 16:27:54 -070026
Doris Lingdf055c82017-07-06 15:21:31 -070027 <RelativeLayout
28 android:layout_width="match_parent"
Doris Ling0018f162017-07-14 11:45:54 -070029 android:layout_height="36dp"
Doris Lingdf055c82017-07-06 15:21:31 -070030 android:layout_centerHorizontal="true">
Doris Ling83a66212017-05-11 16:27:54 -070031
Doris Lingdf055c82017-07-06 15:21:31 -070032 <FrameLayout
33 android:id="@android:id/icon_frame"
34 android:layout_width="wrap_content"
35 android:layout_height="wrap_content"
36 android:layout_marginStart="24dp"
37 android:layout_centerVertical="true">
Doris Ling83a66212017-05-11 16:27:54 -070038
Doris Lingdf055c82017-07-06 15:21:31 -070039 <include layout="@layout/condition_header_icon" />
Doris Ling83a66212017-05-11 16:27:54 -070040
Doris Lingdf055c82017-07-06 15:21:31 -070041 </FrameLayout>
Doris Ling83a66212017-05-11 16:27:54 -070042
Doris Lingdf055c82017-07-06 15:21:31 -070043 <ImageView
44 android:id="@+id/expand_indicator"
45 android:layout_width="wrap_content"
46 android:layout_height="match_parent"
47 android:layout_alignParentEnd="true"
48 android:paddingTop="4dp"
49 android:paddingStart="16dp"
50 android:paddingEnd="16dp"
51 android:src="@drawable/ic_expand_more"/>
Doris Ling83a66212017-05-11 16:27:54 -070052
Doris Lingdf055c82017-07-06 15:21:31 -070053 <TextView
54 android:id="@android:id/summary"
55 android:layout_width="wrap_content"
56 android:layout_height="wrap_content"
57 android:layout_marginStart="8dp"
58 android:layout_toStartOf="@id/expand_indicator"
59 android:layout_centerVertical="true"
60 android:gravity="end"
61 android:textAppearance="@style/TextAppearance.SuggestionTitle"
62 android:textColor="?android:attr/colorAccent" />
Doris Ling83a66212017-05-11 16:27:54 -070063
Doris Lingdf055c82017-07-06 15:21:31 -070064 <TextView
65 android:id="@android:id/title"
66 android:layout_width="wrap_content"
67 android:layout_height="wrap_content"
68 android:layout_toEndOf="@android:id/icon_frame"
69 android:layout_toStartOf="@android:id/summary"
70 android:layout_centerVertical="true"
71 android:singleLine="true"
72 android:ellipsize="end"
73 android:textAppearance="@style/TextAppearance.SuggestionTitle"
Doris Ling3d5556c2018-05-17 16:34:37 -070074 android:textColor="?android:attr/textColorPrimary" />
Doris Lingdf055c82017-07-06 15:21:31 -070075
76 <LinearLayout
77 android:id="@+id/additional_icons"
78 android:layout_width="wrap_content"
79 android:layout_height="match_parent"
80 android:layout_toStartOf="@android:id/summary"
81 android:layout_toEndOf="@android:id/icon_frame"
82 android:orientation="horizontal"
83 android:gravity="center_vertical"/>
84
85 </RelativeLayout>
86
Doris Lingdf055c82017-07-06 15:21:31 -070087</LinearLayout>