1 <?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 18 <LinearLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 style="@style/SuggestionConditionStyle" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:paddingTop="10dp" 24 android:paddingBottom="10dp" 25 android:orientation="vertical"> 26 27 <RelativeLayout 28 android:layout_width="match_parent" 29 android:layout_height="36dp" 30 android:layout_centerHorizontal="true"> 31 32 <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"> 38 39 <include layout="@layout/condition_header_icon" /> 40 41 </FrameLayout> 42 43 <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"/> 52 53 <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" /> 63 64 <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" 74 android:textColor="?android:attr/colorAccent" /> 75 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 87 </LinearLayout> 88