Merge pull request #3073 from deandreamatias/fix-button-shadow-3040

Fix #3040 Video playback control button shadow
This commit is contained in:
H. Lehmann 2019-03-31 00:44:50 +01:00 committed by GitHub
commit c6344f5bc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 49 additions and 29 deletions

View File

@ -33,27 +33,27 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:background="@drawable/overlay_button_circle_background"
android:background="@drawable/md_transparent"
android:contentDescription="@string/rewind_label"
android:src="@drawable/ic_av_rewind_80dp" />
android:src="@drawable/ic_av_fast_rewind_white_80dp" />
<ImageButton
android:id="@+id/butPlay"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:background="@drawable/overlay_button_circle_background"
android:background="@drawable/md_transparent"
android:contentDescription="@string/pause_label"
android:src="@drawable/ic_av_pause_circle_outline_80dp" />
android:src="@drawable/ic_av_pause_white_80dp" />
<ImageButton
android:id="@+id/butFF"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:background="@drawable/overlay_button_circle_background"
android:background="@drawable/md_transparent"
android:contentDescription="@string/fast_forward_label"
android:src="@drawable/ic_av_fast_forward_80dp" />
android:src="@drawable/ic_av_fast_forward_white_80dp" />
</LinearLayout>

View File

@ -412,8 +412,8 @@ public abstract class PlaybackController {
pauseResource = res.getResourceId(1, R.drawable.ic_pause_grey600_36dp);
res.recycle();
} else {
playResource = R.drawable.ic_av_play_circle_outline_80dp;
pauseResource = R.drawable.ic_av_pause_circle_outline_80dp;
playResource = R.drawable.ic_av_play_white_80dp;
pauseResource = R.drawable.ic_av_pause_white_80dp;
}
Log.d(TAG, "status: " + status.toString());
@ -802,7 +802,7 @@ public abstract class PlaybackController {
res.getResourceId(0, de.danoeh.antennapod.core.R.drawable.ic_play_arrow_grey600_36dp));
res.recycle();
} else {
getPlayButton().setImageResource(R.drawable.ic_av_play_circle_outline_80dp);
getPlayButton().setImageResource(R.drawable.ic_av_play_white_80dp);
}
}, error -> Log.e(TAG, Log.getStackTraceString(error)));
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 429 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 408 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 768 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 820 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 349 B

View File

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:type="radial"
android:gradientRadius="37.5%p"
android:startColor="#000000"
android:endColor="@android:color/transparent"/>
</shape>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 575 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 603 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 831 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 757 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="80dp"
android:width="80dp"
android:viewportHeight="24.0"
android:viewportWidth="24.0">
<path android:pathData="M4,18l8.5,-6L4,6v12zM13,6v12l8.5,-6L13,6z"
android:fillColor="#FFFFFFFF"
android:strokeColor="#505050"
android:strokeWidth="0.75"/>
</vector>

View File

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:viewportHeight="24.0"
android:viewportWidth="24.0"
android:width="80dp"
android:height="80dp">
<path android:pathData="M11,18L11,6l-8.5,6 8.5,6zM11.5,12l8.5,6L20,6l-8.5,6z"
android:fillColor="#FFFFFFFF"
android:strokeColor="#505050"
android:strokeWidth="0.75"/>
</vector>

View File

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="80dp"
android:width="80dp"
android:viewportHeight="24.0"
android:viewportWidth="24.0">
<path android:pathData="M6,19h4L10,5L6,5v14zM14,5v14h4L18,5h-4z"
android:fillColor="#FFFFFFFF"
android:strokeColor="#505050"
android:strokeWidth="0.75"/>
</vector>

View File

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="80dp"
android:width="80dp"
android:viewportHeight="24.0"
android:viewportWidth="24.0">
<path android:pathData="M8,5v14l11,-7z"
android:fillColor="#FFFFFFFF"
android:strokeColor="#505050"
android:strokeWidth="0.75"/>
</vector>

View File

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:type="radial"
android:gradientRadius="60"
android:startColor="#000000"
android:endColor="@android:color/transparent"/>
</shape>