Ned Burns | 9eb0633 | 2019-04-23 16:02:12 -0400 | [diff] [blame] | 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" |
Steve Elliott | b094038 | 2020-02-20 14:24:02 -0500 | [diff] [blame] | 22 | android:paddingStart="4dp" |
| 23 | android:paddingEnd="4dp" |
Ned Burns | 9eb0633 | 2019-04-23 16:02:12 -0400 | [diff] [blame] | 24 | android:focusable="true" |
| 25 | android:clickable="true" |
| 26 | > |
Ned Burns | 2c74c2a | 2019-06-13 19:06:47 -0400 | [diff] [blame] | 27 | |
Ned Burns | 9eb0633 | 2019-04-23 16:02:12 -0400 | [diff] [blame] | 28 | <LinearLayout |
| 29 | android:id="@+id/content" |
| 30 | android:layout_width="match_parent" |
Steve Elliott | b094038 | 2020-02-20 14:24:02 -0500 | [diff] [blame] | 31 | android:layout_height="wrap_content" |
| 32 | android:layout_gravity="bottom" |
Ned Burns | 9eb0633 | 2019-04-23 16:02:12 -0400 | [diff] [blame] | 33 | android:gravity="center_vertical" |
| 34 | android:orientation="horizontal" |
Selim Cinek | 6df1385 | 2020-02-25 12:39:00 -0800 | [diff] [blame] | 35 | android:forceHasOverlappingRendering="false" |
| 36 | android:clipChildren="false" |
Ned Burns | 9eb0633 | 2019-04-23 16:02:12 -0400 | [diff] [blame] | 37 | > |
Steve Elliott | 59e23eb | 2020-03-18 16:13:19 -0400 | [diff] [blame] | 38 | <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 Burns | 9eb0633 | 2019-04-23 16:02:12 -0400 | [diff] [blame] | 66 | </LinearLayout> |
| 67 | |
Ned Burns | 9eb0633 | 2019-04-23 16:02:12 -0400 | [diff] [blame] | 68 | </com.android.systemui.statusbar.notification.stack.SectionHeaderView> |