Mill Chen | 4b19fec | 2018-11-15 14:39:55 +0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2018 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 | |
Fan Zhang | a60652a | 2018-11-27 14:29:45 -0800 | [diff] [blame] | 18 | <com.google.android.material.card.MaterialCardView |
Mill Chen | 4b19fec | 2018-11-15 14:39:55 +0800 | [diff] [blame] | 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="wrap_content" |
Yanting Yang | 352ca99 | 2019-03-29 19:42:37 +0800 | [diff] [blame] | 22 | android:contentDescription="@string/condition_expand_show" |
Mill Chen | 4b19fec | 2018-11-15 14:39:55 +0800 | [diff] [blame] | 23 | style="@style/ContextualCardStyle"> |
| 24 | |
| 25 | <LinearLayout |
| 26 | android:layout_width="match_parent" |
| 27 | android:layout_height="wrap_content" |
Fan Zhang | b64d16d | 2019-04-10 12:25:10 -0700 | [diff] [blame] | 28 | android:paddingTop="@dimen/contextual_condition_header_padding_top" |
| 29 | android:paddingBottom="@dimen/contextual_condition_header_padding_bottom" |
Mill Chen | 4b19fec | 2018-11-15 14:39:55 +0800 | [diff] [blame] | 30 | android:orientation="horizontal" |
| 31 | android:gravity="center_vertical"> |
| 32 | |
| 33 | <LinearLayout |
| 34 | android:id="@+id/header_icons_container" |
| 35 | android:layout_width="0dp" |
| 36 | android:layout_height="match_parent" |
| 37 | android:layout_weight="1" |
Fan Zhang | b64d16d | 2019-04-10 12:25:10 -0700 | [diff] [blame] | 38 | android:layout_marginStart="@dimen/contextual_condition_header_icons_margin_start" |
Mill Chen | 4b19fec | 2018-11-15 14:39:55 +0800 | [diff] [blame] | 39 | android:orientation="horizontal" |
| 40 | android:gravity="center_vertical"/> |
| 41 | |
| 42 | <ImageView |
| 43 | android:id="@+id/expand_indicator" |
| 44 | android:layout_width="wrap_content" |
| 45 | android:layout_height="match_parent" |
Fan Zhang | b64d16d | 2019-04-10 12:25:10 -0700 | [diff] [blame] | 46 | android:paddingTop="@dimen/contextual_condition_header_indicator_padding_top" |
| 47 | android:paddingStart="@dimen/contextual_condition_header_indicator_padding_start" |
| 48 | android:paddingEnd="@dimen/contextual_condition_header_indicator_padding_end" |
Sunny Shao | 3ef480e | 2019-03-18 11:52:35 +0800 | [diff] [blame] | 49 | android:src="@drawable/ic_expand_more_inverse" |
| 50 | android:tint="?android:attr/colorControlNormal"/> |
Mill Chen | 4b19fec | 2018-11-15 14:39:55 +0800 | [diff] [blame] | 51 | |
| 52 | </LinearLayout> |
| 53 | |
Amin Shaikh | 9391361 | 2019-01-24 18:00:29 -0500 | [diff] [blame] | 54 | </com.google.android.material.card.MaterialCardView> |