blob: 219468a55758389c404377940624f04e164ebc64 [file] [log] [blame]
Mill Chen4b19fec2018-11-15 14:39:55 +08001<?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 Zhanga60652a2018-11-27 14:29:45 -080018<com.google.android.material.card.MaterialCardView
Mill Chen4b19fec2018-11-15 14:39:55 +080019 xmlns:android="http://schemas.android.com/apk/res/android"
20 android:layout_width="match_parent"
21 android:layout_height="wrap_content"
Yanting Yang352ca992019-03-29 19:42:37 +080022 android:contentDescription="@string/condition_expand_show"
Mill Chen4b19fec2018-11-15 14:39:55 +080023 style="@style/ContextualCardStyle">
24
25 <LinearLayout
26 android:layout_width="match_parent"
27 android:layout_height="wrap_content"
Fan Zhangb64d16d2019-04-10 12:25:10 -070028 android:paddingTop="@dimen/contextual_condition_header_padding_top"
29 android:paddingBottom="@dimen/contextual_condition_header_padding_bottom"
Mill Chen4b19fec2018-11-15 14:39:55 +080030 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 Zhangb64d16d2019-04-10 12:25:10 -070038 android:layout_marginStart="@dimen/contextual_condition_header_icons_margin_start"
Mill Chen4b19fec2018-11-15 14:39:55 +080039 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 Zhangb64d16d2019-04-10 12:25:10 -070046 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 Shao3ef480e2019-03-18 11:52:35 +080049 android:src="@drawable/ic_expand_more_inverse"
50 android:tint="?android:attr/colorControlNormal"/>
Mill Chen4b19fec2018-11-15 14:39:55 +080051
52 </LinearLayout>
53
Amin Shaikh93913612019-01-24 18:00:29 -050054</com.google.android.material.card.MaterialCardView>