Edit playerBottomSheetLayout to include a PlayerControlView

This commit is contained in:
CappielloAntonio 2021-12-29 10:12:26 +01:00
parent 2a11fedf65
commit f9ac2f2646
7 changed files with 89 additions and 71 deletions

View file

@ -11,6 +11,16 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.media3.ui.PlayerControlView
android:id="@+id/player_body_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:controller_layout_id="@layout/player_body_bottom_sheet"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:show_timeout="0"/>
<include
android:id="@+id/player_header_layout"
layout="@layout/player_header_bottom_sheet"
@ -19,14 +29,5 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<include
android:id="@+id/player_body_layout"
layout="@layout/player_body_bottom_sheet"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</FrameLayout>
</androidx.core.widget.NestedScrollView>