Android: Wrap game details dialog in ScrollView

This makes the dialog scrollable if the contents don't fit on the
screen. This happens for me in landscape but not in portrait.
This commit is contained in:
JosJuice 2020-06-25 12:23:56 +02:00
parent 26ed3b318c
commit 2a3aa7a1f6

View File

@ -1,14 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<ScrollView 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/frameLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:transitionName="card_game">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="24dp"
android:paddingEnd="24dp"
android:paddingBottom="24dp"
android:transitionName="card_game">
android:paddingBottom="24dp">
<TextView
android:id="@+id/text_game_title"
@ -215,4 +218,6 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBaseline_toBaselineOf="@id/label_block_size" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>