Skip to content

Commit

Permalink
Merge pull request #473 from Reco1I/fix-credits-dialog
Browse files Browse the repository at this point in the history
Fix dialogs not being scrollable when the content is big
  • Loading branch information
Rian8337 authored Dec 17, 2024
2 parents 94d8c7b + d773d38 commit 3197f3d
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions res/layout/dialog_message_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
android:id="@+id/frg_body"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="20dp"
android:layout_marginTop="20dp"
android:background="@drawable/rounded_rect"
android:backgroundTint="#1E1E2E"
android:divider="@drawable/divider"
Expand All @@ -28,25 +27,32 @@
android:paddingVertical="12dp"
tools:text="Title" />

<TextView
android:id="@+id/message"
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:maxWidth="500dp"
android:minWidth="300dp"
android:minHeight="100dp"
android:padding="16dp"
android:textColor="#FFF"
tools:text="Message" />
android:layout_height="0dp"
android:layout_weight="1">

<TextView
android:id="@+id/message"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:maxWidth="500dp"
android:minWidth="300dp"
android:minHeight="100dp"
android:padding="16dp"
android:textColor="#FFF"
tools:text="Message" />

</ScrollView>

<LinearLayout
android:id="@+id/button_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:divider="@drawable/divider"
android:showDividers="middle" />
android:showDividers="middle"/>

</LinearLayout>

Expand Down

0 comments on commit 3197f3d

Please sign in to comment.