Skip to content
This repository was archived by the owner on May 19, 2023. It is now read-only.

Commit f3b88a3

Browse files
committed
Center button at the bottom
1 parent 4ac2adf commit f3b88a3

1 file changed

Lines changed: 19 additions & 9 deletions

File tree

CorrectorSoftcatala/src/main/res/layout/activity_welcome.xml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,25 @@
5959
android:layout_height="wrap_content"
6060
app:layout_constraintTop_toBottomOf="@+id/textViewLimitationsTitle"/>
6161

62-
<Button
63-
android:id="@+id/buttonClose"
64-
style="@style/Widget.AppCompat.Button.Colored"
65-
android:layout_width="wrap_content"
66-
android:layout_height="wrap_content"
67-
android:layout_marginTop="10dp"
68-
app:layout_constraintLeft_toLeftOf="parent"
69-
app:layout_constraintRight_toRightOf="parent"
70-
app:layout_constraintTop_toBottomOf="@+id/textViewLimitations"/>
62+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
63+
android:id="@+id/relativeLayout"
64+
android:layout_width="fill_parent"
65+
android:layout_height="fill_parent">
66+
67+
<Button
68+
android:id="@+id/buttonClose"
69+
style="@style/Widget.AppCompat.Button.Colored"
70+
android:layout_width="wrap_content"
71+
android:layout_height="wrap_content"
72+
android:layout_centerInParent="true"
73+
android:layout_marginTop="10dp"
74+
app:layout_constraintLeft_toLeftOf="parent"
75+
app:layout_constraintRight_toRightOf="parent"
76+
/>
77+
78+
</RelativeLayout>
79+
80+
7181
</LinearLayout>
7282

7383
</ScrollView>

0 commit comments

Comments
 (0)