1<!--
2  ~ Copyright (C) 2019 The Android Open Source Project
3  ~
4  ~ Licensed under the Apache License, Version 2.0 (the "License");
5  ~ you may not use this file except in compliance with the License.
6  ~ You may obtain a copy of the License at
7  ~
8  ~      http://www.apache.org/licenses/LICENSE-2.0
9  ~
10  ~ Unless required by applicable law or agreed to in writing, software
11  ~ distributed under the License is distributed on an "AS IS" BASIS,
12  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  ~ See the License for the specific language governing permissions and
14  ~ limitations under the License
15  -->
16
17<!-- Extends FrameLayout -->
18<com.android.systemui.statusbar.notification.stack.SectionHeaderView
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:layout_width="match_parent"
21    android:layout_height="@dimen/notification_section_header_height"
22    android:paddingStart="4dp"
23    android:paddingEnd="4dp"
24    >
25
26    <LinearLayout
27        android:id="@+id/content"
28        android:layout_width="match_parent"
29        android:layout_height="wrap_content"
30        android:layout_gravity="bottom"
31        android:gravity="center_vertical"
32        android:orientation="horizontal"
33        android:forceHasOverlappingRendering="false"
34        android:clipChildren="false"
35        >
36        <FrameLayout
37            android:layout_width="wrap_content"
38            android:layout_height="wrap_content"
39            android:gravity="start|center_vertical"
40            android:layout_weight="1">
41
42            <TextView
43                style="@style/TextAppearance.NotificationSectionHeaderButton"
44                android:id="@+id/header_label"
45                android:layout_width="wrap_content"
46                android:layout_height="wrap_content"
47                android:focusable="true"
48                android:forceHasOverlappingRendering="false"
49                android:text="@string/notification_section_header_gentle"
50            />
51
52        </FrameLayout>
53        <ImageView
54            android:id="@+id/btn_clear_all"
55            android:layout_width="48dp"
56            android:layout_height="48dp"
57            android:src="@drawable/status_bar_notification_section_header_clear_btn"
58            android:contentDescription="@string/accessibility_notification_section_header_gentle_clear_all"
59            android:focusable="true"
60            android:scaleType="center"
61            android:tintMode="src_in"
62            android:visibility="gone"
63            android:forceHasOverlappingRendering="false"
64        />
65    </LinearLayout>
66
67</com.android.systemui.statusbar.notification.stack.SectionHeaderView>
68