set the video player background drawable in code

This commit is contained in:
tibbi 2019-01-02 20:15:14 +01:00
parent dad6fb6689
commit 1d1254b6e9
2 changed files with 2 additions and 2 deletions

View File

@ -68,6 +68,7 @@ open class VideoPlayerActivity : SimpleActivity(), SeekBar.OnSeekBarChangeListen
supportActionBar?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
window.statusBarColor = Color.TRANSPARENT
window.navigationBarColor = Color.TRANSPARENT
video_time_holder.background = resources.getDrawable(R.drawable.gradient_background)
if (config.blackBackground) {
video_player_holder.background = ColorDrawable(Color.BLACK)
}

View File

@ -5,8 +5,7 @@
android:id="@+id/video_time_holder"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@drawable/gradient_background">
android:layout_alignParentBottom="true">
<TextView
android:id="@+id/video_curr_time"