Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 878061c

Browse files
committed
fix: center text in onboarding greeting fragment
1 parent c5e0e68 commit 878061c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/src/main/res/layout/fragment_onboarding_greeting.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@
3535

3636
<com.google.android.material.textview.MaterialTextView
3737
android:id="@+id/title"
38-
android:layout_width="wrap_content"
38+
android:layout_width="0dp"
3939
android:layout_height="wrap_content"
4040
android:layout_margin="16dp"
41+
android:gravity="center"
4142
android:text="@string/greeting_title"
4243
android:textAppearance="@style/TextAppearance.Material3.DisplayMedium"
4344
app:layout_constraintEnd_toEndOf="parent"
@@ -46,7 +47,7 @@
4647

4748
<com.google.android.material.textview.MaterialTextView
4849
android:id="@+id/description"
49-
android:layout_width="wrap_content"
50+
android:layout_width="0dp"
5051
android:layout_height="wrap_content"
5152
android:layout_marginStart="32dp"
5253
android:layout_marginEnd="32dp"

0 commit comments

Comments
 (0)