style: use material in playback view
Use Slider and FloatingActionbutton in the playback view. This is not because I wanted to, but because there were insane bugs on Lollipop devices that stemmed from them being unable to load complex selector resources.
This commit is contained in:
@@ -6,6 +6,6 @@
|
||||
android:viewportHeight="108">
|
||||
<path
|
||||
android:fillColor="@color/fill_icon_bg"
|
||||
android:strokeColor="#00000000"
|
||||
android:pathData="M0 0h108v108H0z" />
|
||||
android:pathData="M0 0h108v108H0z"
|
||||
android:strokeColor="#00000000" />
|
||||
</vector>
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path
|
||||
android:fillColor="#ffffff"
|
||||
android:pathData="M 53.999797,30.00003 V 56.66727 H 52.765254 48.82459 44.568872 l -6.567779,6.56803 v 4.05833 c -4.8e-5,0.0136 -0.0011,0.0269 -0.0011,0.0405 0,0.0136 0.0011,0.027 0.0011,0.0405 v 4.0573 l 6.567779,6.56804 h 8.196382 l 6.567788,-6.56804 v -4.0573 c 5e-5,-0.0133 9.92e-4,-0.0269 9.92e-4,-0.0405 V 40.667439 H 70.000006 V 30.001057 Z"
|
||||
android:strokeColor="#00000000"
|
||||
android:fillColor="#ffffff">
|
||||
</path>
|
||||
android:strokeColor="#00000000"></path>
|
||||
</vector>
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:tint="?attr/colorControlNormal"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M6,19h4L10,5L6,5v14zM14,5v14h4L18,5h-4z"/>
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M6,19h4L10,5L6,5v14zM14,5v14h4L18,5h-4z" />
|
||||
</vector>
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:tint="?attr/colorControlNormal"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M8,5v14l11,-7L8,5z"/>
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M8,5v14l11,-7L8,5z" />
|
||||
</vector>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/ic_pause"
|
||||
android:state_activated="true" />
|
||||
<item android:drawable="@drawable/ic_pause" android:state_activated="true" />
|
||||
<item android:drawable="@drawable/ic_play" />
|
||||
</selector>
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:color="@color/m3_button_ripple_color_selector">
|
||||
android:color="@color/mtrl_btn_ripple_color">
|
||||
<item android:id="@android:id/background">
|
||||
<shape
|
||||
android:shape="rectangle"
|
||||
|
||||
@@ -1,11 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle"
|
||||
android:tint="?attr/colorSecondary">
|
||||
|
||||
<corners android:radius="8dp" />
|
||||
<padding android:top="4dp" android:bottom="4dp" android:right="2dp" android:left="2dp"/>
|
||||
<size android:width="8dp" android:height="52dp" />
|
||||
<padding
|
||||
android:bottom="4dp"
|
||||
android:left="2dp"
|
||||
android:right="2dp"
|
||||
android:top="4dp" />
|
||||
<size
|
||||
android:width="8dp"
|
||||
android:height="52dp" />
|
||||
<solid android:color="@android:color/white" />
|
||||
</shape>
|
||||
@@ -1,5 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Hack to make MaterialShapeDrawable cooperate with RippleDrawable. See
|
||||
<?xml version="1.0" encoding="utf-8"?><!-- Hack to make MaterialShapeDrawable cooperate with RippleDrawable. See
|
||||
CompactPlaybackView for more info. -->
|
||||
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:color="?attr/colorControlHighlight">
|
||||
|
||||
@@ -2,10 +2,9 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<solid
|
||||
android:color="#00000000" />
|
||||
<solid android:color="#00000000" />
|
||||
|
||||
<size
|
||||
android:width="1000px"
|
||||
android:height="1000px"/>
|
||||
android:height="1000px" />
|
||||
</shape>
|
||||
Reference in New Issue
Block a user