blob: b5822c889f1cb7c8d46406aed0da8c5b02bf53cf [file] [log] [blame]
Ned Burns9eb06332019-04-23 16:02:12 -04001<!--
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"
Steve Elliottb0940382020-02-20 14:24:02 -050022 android:paddingStart="4dp"
23 android:paddingEnd="4dp"
Ned Burns9eb06332019-04-23 16:02:12 -040024 android:focusable="true"
25 android:clickable="true"
26 >
Ned Burns2c74c2a2019-06-13 19:06:47 -040027
Ned Burns9eb06332019-04-23 16:02:12 -040028 <LinearLayout
29 android:id="@+id/content"
30 android:layout_width="match_parent"
Steve Elliottb0940382020-02-20 14:24:02 -050031 android:layout_height="wrap_content"
32 android:layout_gravity="bottom"
Ned Burns9eb06332019-04-23 16:02:12 -040033 android:gravity="center_vertical"
34 android:orientation="horizontal"
Selim Cinek6df13852020-02-25 12:39:00 -080035 android:forceHasOverlappingRendering="false"
36 android:clipChildren="false"
Ned Burns9eb06332019-04-23 16:02:12 -040037 >
Steve Elliott59e23eb2020-03-18 16:13:19 -040038 <FrameLayout
39 android:layout_width="wrap_content"
40 android:layout_height="wrap_content"
41 android:gravity="start|center_vertical"
42 android:layout_weight="1">
43
44 <TextView
45 style="@style/TextAppearance.NotificationSectionHeaderButton"
46 android:id="@+id/header_label"
47 android:layout_width="wrap_content"
48 android:layout_height="wrap_content"
49 android:forceHasOverlappingRendering="false"
50 android:text="@string/notification_section_header_gentle"
51 />
52
53 </FrameLayout>
54 <ImageView
55 android:id="@+id/btn_clear_all"
56 android:layout_width="48dp"
57 android:layout_height="48dp"
58 android:src="@drawable/status_bar_notification_section_header_clear_btn"
59 android:contentDescription="@string/accessibility_notification_section_header_gentle_clear_all"
60 android:scaleType="center"
61 android:tint="?attr/wallpaperTextColor"
62 android:tintMode="src_in"
63 android:visibility="gone"
64 android:forceHasOverlappingRendering="false"
65 />
Ned Burns9eb06332019-04-23 16:02:12 -040066 </LinearLayout>
67
Ned Burns9eb06332019-04-23 16:02:12 -040068</com.android.systemui.statusbar.notification.stack.SectionHeaderView>