remove kotlin-android-extensions, use viewBinding in Player
also replace exo_progress_placeholder with exoplayer2.ui.DefaultTimeBar since the placehoder wont work with viewbinding
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/player_controls_root"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#73000000">
|
||||
@ -94,11 +95,12 @@
|
||||
android:layout_marginEnd="12dp"
|
||||
android:layout_marginBottom="@dimen/player_styled_progress_margin_bottom">
|
||||
|
||||
<View
|
||||
android:id="@+id/exo_progress_placeholder"
|
||||
<com.google.android.exoplayer2.ui.DefaultTimeBar
|
||||
android:id="@id/exo_progress"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/player_styled_progress_layout_height"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:contentDescription="@string/desc_time_bar"
|
||||
app:bar_height="3dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@+id/exo_remaining"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@ -107,9 +109,10 @@
|
||||
<TextView
|
||||
android:id="@+id/exo_remaining"
|
||||
style="@style/ExoStyledControls.TimeText.Position"
|
||||
android:layout_height="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
|
Reference in New Issue
Block a user