Update notification blocking ui theming
Test: manual inspection Fixes: 187656252 Change-Id: I82ba71abd7858a301a065492340a00fcf4203fc3
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="?android:attr/colorBackgroundFloating" />
|
||||
<solid android:color="?androidprv:attr/colorSurface" />
|
||||
<corners
|
||||
android:bottomLeftRadius="?android:attr/dialogCornerRadius"
|
||||
android:topLeftRadius="?android:attr/dialogCornerRadius"
|
||||
|
||||
@@ -64,10 +64,12 @@
|
||||
android:layout_gravity="center"
|
||||
android:padding="8dp"
|
||||
android:gravity="center_vertical|start"
|
||||
android:textSize="15sp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
style="@style/TextAppearance.NotificationImportanceChannel" />
|
||||
android:maxLines="2"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
|
||||
<Switch
|
||||
android:id="@+id/toggle"
|
||||
@@ -80,18 +82,13 @@
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?android:attr/colorAccent"
|
||||
android:background="@*android:color/background_device_default_light"
|
||||
/>
|
||||
|
||||
<!-- ChannelRows get added dynamically -->
|
||||
|
||||
</com.android.systemui.statusbar.notification.row.ChannelEditorListView>
|
||||
<!-- divider view -->
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?android:attr/colorAccent"
|
||||
/>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/bottom_actions"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -21,61 +21,76 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="8dp"
|
||||
android:clickable="true"
|
||||
android:orientation="horizontal"
|
||||
android:foreground="?android:attr/selectableItemBackground" >
|
||||
|
||||
<!-- This is where an icon would go *if we wanted one* **wink** -->
|
||||
<Space
|
||||
android:id="@+id/icon"
|
||||
android:layout_height="48dp"
|
||||
android:layout_width="48dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:padding="8dp"
|
||||
/>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/description_container"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:gravity="left|center_vertical"
|
||||
android:orientation="vertical"
|
||||
android:orientation="vertical"
|
||||
android:foreground="?android:attr/selectableItemBackground"
|
||||
>
|
||||
<TextView
|
||||
android:id="@+id/channel_name"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:paddingBottom="0dp"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:gravity="center_vertical|start"
|
||||
android:textSize="14sp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
style="@style/TextAppearance.NotificationImportanceChannel"
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<!-- This is where an icon would go *if we wanted one* **wink** -->
|
||||
<Space
|
||||
android:id="@+id/icon"
|
||||
android:layout_height="48dp"
|
||||
android:layout_width="48dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:padding="8dp"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/channel_description"
|
||||
<RelativeLayout
|
||||
android:id="@+id/description_container"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:gravity="center_vertical|start"
|
||||
android:textSize="14sp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:layout_below="@id/channel_name"
|
||||
style="@style/TextAppearance.NotificationImportanceApp"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:gravity="left|center_vertical"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
<TextView
|
||||
android:id="@+id/channel_name"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:paddingBottom="0dp"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:gravity="center_vertical|start"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamily"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
|
||||
<Switch
|
||||
android:id="@+id/toggle"
|
||||
android:layout_height="48dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:padding="8dp"
|
||||
<TextView
|
||||
android:id="@+id/channel_description"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:gravity="center_vertical|start"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:layout_below="@id/channel_name"
|
||||
android:fontFamily="@*android:string/config_bodyFontFamily"
|
||||
android:textColor="?android:attr/textColorSecondary"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
|
||||
<Switch
|
||||
android:id="@+id/toggle"
|
||||
android:layout_height="48dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:padding="8dp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
<!-- divider view -->
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height=".5dp"
|
||||
android:background="@*android:color/background_device_default_light"
|
||||
/>
|
||||
</com.android.systemui.statusbar.notification.row.ChannelRow>
|
||||
|
||||
Reference in New Issue
Block a user