playback: use layer background in playback panel

Use a layered background in the playback panel, with a colorSurface layer
behind the elevated MaterialShapeDrawable. This is for safety, as there
might be cases where a fully transparent MaterialShapeDrawable results in
unexpected behavior.
This commit is contained in:
OxygenCobalt
2021-11-25 10:10:07 -07:00
parent 2ae22500d3
commit 56ded96b10
2 changed files with 41 additions and 13 deletions
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background">
<shape android:shape="rectangle">
<solid android:color="?attr/colorSurface" />
</shape>
</item>
<item android:id="@+id/panel_overlay">
<shape android:shape="rectangle" />
</item>
</layer-list>