Add background to autoplay controls

Added a translucent background to the video autoplay controls. Before, when the video background was white, you couldn't see the video controls; this fixes that.
This commit is contained in:
Luke Simmons 2020-12-26 22:51:34 -06:00
parent 19e8cfbf15
commit e980e1a613
No known key found for this signature in database
GPG Key ID: B7E6DA21F06F2DCB
2 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<solid
android:color="#80000000" />
<corners
android:topLeftRadius="16dp"
android:topRightRadius="16dp" />
</shape>

View File

@ -5,7 +5,8 @@
android:layout_height="wrap_content"
android:paddingStart="16dp"
android:paddingEnd="8dp"
android:layout_gravity="bottom">
android:layout_gravity="bottom"
android:background="@drawable/background_autoplay">
<TextView android:id="@id/exo_position"
android:layout_width="wrap_content"