Update SliceViewStyle background color
Update android:background color in SliceViewStle to make it have correct color when Panel is in dark mode. Use the attr which will change depends on theme, rather than contextual card background which is defined by settings, to make it correct in more general case. Fixes: 131927006 Test: Manual Change-Id: I38733f5a53d38f70f925268efea7592bd0f48260
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
<androidx.slice.widget.SliceView
|
<androidx.slice.widget.SliceView
|
||||||
android:id="@+id/slice_view"
|
android:id="@+id/slice_view"
|
||||||
style="@style/SliceViewStyle"
|
style="@style/ContextualCardSliceViewStyle"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
|
|||||||
@@ -493,6 +493,10 @@
|
|||||||
<item name="android:paddingEnd">8dp</item>
|
<item name="android:paddingEnd">8dp</item>
|
||||||
|
|
||||||
<item name="rowStyle">@style/SliceRowStyle</item>
|
<item name="rowStyle">@style/SliceRowStyle</item>
|
||||||
|
<item name="android:background">?android:attr/colorBackgroundFloating</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="ContextualCardSliceViewStyle" parent="SliceViewStyle">
|
||||||
<item name="android:background">@color/contextual_card_background</item>
|
<item name="android:background">@color/contextual_card_background</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user