Doris Ling | 83a6621 | 2017-05-11 16:27:54 -0700 | [diff] [blame] | 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 | |
Doris Ling | df055c8 | 2017-07-06 15:21:31 -0700 | [diff] [blame] | 18 | <LinearLayout |
Doris Ling | 83a6621 | 2017-05-11 16:27:54 -0700 | [diff] [blame] | 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | style="@style/SuggestionConditionStyle" |
| 21 | android:layout_width="match_parent" |
Doris Ling | df055c8 | 2017-07-06 15:21:31 -0700 | [diff] [blame] | 22 | android:layout_height="wrap_content" |
Doris Ling | 0018f16 | 2017-07-14 11:45:54 -0700 | [diff] [blame] | 23 | android:paddingTop="10dp" |
| 24 | android:paddingBottom="10dp" |
Doris Ling | df055c8 | 2017-07-06 15:21:31 -0700 | [diff] [blame] | 25 | android:orientation="vertical"> |
Doris Ling | 83a6621 | 2017-05-11 16:27:54 -0700 | [diff] [blame] | 26 | |
Doris Ling | df055c8 | 2017-07-06 15:21:31 -0700 | [diff] [blame] | 27 | <RelativeLayout |
| 28 | android:layout_width="match_parent" |
Doris Ling | 0018f16 | 2017-07-14 11:45:54 -0700 | [diff] [blame] | 29 | android:layout_height="36dp" |
Doris Ling | df055c8 | 2017-07-06 15:21:31 -0700 | [diff] [blame] | 30 | android:layout_centerHorizontal="true"> |
Doris Ling | 83a6621 | 2017-05-11 16:27:54 -0700 | [diff] [blame] | 31 | |
Doris Ling | df055c8 | 2017-07-06 15:21:31 -0700 | [diff] [blame] | 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"> |
Doris Ling | 83a6621 | 2017-05-11 16:27:54 -0700 | [diff] [blame] | 38 | |
Doris Ling | df055c8 | 2017-07-06 15:21:31 -0700 | [diff] [blame] | 39 | <include layout="@layout/condition_header_icon" /> |
Doris Ling | 83a6621 | 2017-05-11 16:27:54 -0700 | [diff] [blame] | 40 | |
Doris Ling | df055c8 | 2017-07-06 15:21:31 -0700 | [diff] [blame] | 41 | </FrameLayout> |
Doris Ling | 83a6621 | 2017-05-11 16:27:54 -0700 | [diff] [blame] | 42 | |
Doris Ling | df055c8 | 2017-07-06 15:21:31 -0700 | [diff] [blame] | 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"/> |
Doris Ling | 83a6621 | 2017-05-11 16:27:54 -0700 | [diff] [blame] | 52 | |
Doris Ling | df055c8 | 2017-07-06 15:21:31 -0700 | [diff] [blame] | 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" /> |
Doris Ling | 83a6621 | 2017-05-11 16:27:54 -0700 | [diff] [blame] | 63 | |
Doris Ling | df055c8 | 2017-07-06 15:21:31 -0700 | [diff] [blame] | 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" |
Doris Ling | 3d5556c | 2018-05-17 16:34:37 -0700 | [diff] [blame^] | 74 | android:textColor="?android:attr/textColorPrimary" /> |
Doris Ling | df055c8 | 2017-07-06 15:21:31 -0700 | [diff] [blame] | 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 | |
Doris Ling | df055c8 | 2017-07-06 15:21:31 -0700 | [diff] [blame] | 87 | </LinearLayout> |