I'm beginner student of Android programming
I've added LinearLayout and ScrollView. I've filled LinearLayout with many long TextViews, to ensure, that it is long enough, to be able to scroll. My issue is, that is not scrolling and don't know why. Code below:
<!-- short version -->
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="false"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:scrollbars="vertical"
android:id="@+id/description">
</LinearLayout>
</ScrollView>
<!-- full version -->
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/frame_id"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:id="@+id/relative_id"
android:gravity="top">
<androidx.media3.ui.PlayerView
android:id="@+id/playerView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:keepScreenOn="true"
/>
<ImageButton
android:id="@+id/fullScreenBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/fullscreen_icon"
/>
<ImageView
android:id="@+id/loading_img"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/loading"
android:visibility="gone"
/>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="false"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:scrollbars="vertical"
android:id="@+id/description">
</LinearLayout>
</ScrollView>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
I'm newbie to Android, please, make me a hint.
Thank you so much. Mike
