Skip to content

Commit acce8d1

Browse files
committed
more customization for R Notification
* For Panel Background Customization
1 parent de5c322 commit acce8d1

5 files changed

Lines changed: 33 additions & 1 deletion

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3+
4+
<item android:top="10dp">
5+
6+
<shape android:shape="rectangle">
7+
8+
<solid android:color="@*android:color/transparent" />
9+
10+
<corners
11+
android:bottomLeftRadius="0dp"
12+
android:bottomRightRadius="0dp"
13+
android:topLeftRadius="?android:dialogCornerRadius"
14+
android:topRightRadius="?android:dialogCornerRadius" />
15+
</shape>
16+
</item>
17+
</layer-list>

packages/SystemUI/res/layout/people_strip.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@
2323
android:paddingEnd="4dp"
2424
android:focusable="true"
2525
android:clickable="true"
26+
android:background="@drawable/notification_section_header_background"
2627
>
2728

2829
<LinearLayout
2930
android:id="@+id/people_list"
3031
android:layout_width="match_parent"
3132
android:layout_height="match_parent"
3233
android:layout_marginEnd="8dp"
34+
android:layout_marginTop="@dimen/notification_header_margin_top"
3335
android:gravity="bottom"
3436
android:orientation="horizontal"
3537
android:forceHasOverlappingRendering="false"
@@ -44,6 +46,7 @@
4446
android:layout_width="wrap_content"
4547
android:layout_height="wrap_content"
4648
android:text="@string/notification_section_header_conversations"
49+
android:textColor="@color/notification_header_text"
4750
/>
4851

4952
<ImageView

packages/SystemUI/res/layout/status_bar_notification_section_header.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
android:paddingEnd="4dp"
2424
android:focusable="true"
2525
android:clickable="true"
26+
android:background="@drawable/notification_section_header_background"
2627
>
2728

2829
<LinearLayout
@@ -31,6 +32,7 @@
3132
android:layout_height="wrap_content"
3233
android:gravity="center_vertical"
3334
android:orientation="horizontal"
35+
android:layout_marginTop="@dimen/notification_header_margin_top"
3436
android:forceHasOverlappingRendering="false"
3537
android:clipChildren="false"
3638
>
@@ -44,6 +46,7 @@
4446
android:layout_width="wrap_content"
4547
android:layout_height="wrap_content"
4648
android:forceHasOverlappingRendering="false"
49+
android:textColor="@color/notification_header_text"
4750
android:text="@string/notification_section_header_gentle" />
4851
</LinearLayout>
4952

@@ -52,10 +55,11 @@
5255
android:layout_width="48dp"
5356
android:layout_height="48dp"
5457
android:layout_gravity="end|center_vertical"
58+
android:layout_marginTop="@dimen/notification_header_margin_top"
5559
android:src="@drawable/status_bar_notification_section_header_clear_btn"
5660
android:contentDescription="@string/accessibility_notification_section_header_gentle_clear_all"
5761
android:scaleType="center"
58-
android:tint="?attr/wallpaperTextColor"
62+
android:tint="@color/notification_header_text"
5963
android:tintMode="src_in"
6064
android:visibility="gone"
6165
android:forceHasOverlappingRendering="false"

packages/SystemUI/res/values/nad_colors.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,9 @@
5151

5252
<!-- Ringer Background Color-->
5353
<color name="ringer_background_color">#70000000</color>
54+
55+
<!-- Notification Header Color-->
56+
<color name="notification_header_text">#ffffffff</color>
57+
5458
</resources>
5559

packages/SystemUI/res/values/nad_dimens.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,8 @@
5454

5555
<!-- Bottom margin size when fingerprint in display is active -->
5656
<dimen name="keyguard_indication_margin_bottom_fingerprint_in_display">@dimen/keyguard_indication_margin_bottom</dimen>
57+
58+
<!-- Notification header R -->
59+
<dimen name="notification_header_margin_top">0dp</dimen>
60+
5761
</resources>

0 commit comments

Comments
 (0)