android – Use Jetpack Compose vertically scrollable component in ConstraintLayout

I have a player layer with subtitle layer like this: Parent of player layer is and XML ConstraintLayout that have a ComposeView child. This ComposeView is my subtitle layer. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” android:layout_width=”match_parent” android:layout_height=”match_parent” android:background=”#000000″> <com.google.android.exoplayer2.ui.PlayerView android:id=”@+id/video_view” android:layout_width=”match_parent” android:layout_height=”match_parent” android:animateLayoutChanges=”true” app:auto_show=”true” app:controller_layout_id=”@layout/layout_exoplayer_control_views” app:surface_type=”surface_view” app:use_controller=”true” /> <androidx.compose.ui.platform.ComposeView android:id=”@+id/subtitle_layout” android:layout_width=”250dp” android:layout_height=”match_parent” android:background=”@color/black_50″ app:layout_constraintBottom_toBottomOf=”parent” app:layout_constraintEnd_toEndOf=”parent” app:layout_constraintTop_toTopOf=”parent” /> </androidx.constraintlayout.widget.ConstraintLayout> … Read more