From 066dc36e2b1154f67abfea712594f3bc51724ac6 Mon Sep 17 00:00:00 2001 From: Aleksander Nowakowski Date: Thu, 10 Oct 2024 22:53:18 +0200 Subject: [PATCH] Improvement: Moving scroll bars to the edges --- sample/src/main/res/layout/activity_main.xml | 45 ++++++++++++-------- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/sample/src/main/res/layout/activity_main.xml b/sample/src/main/res/layout/activity_main.xml index 07e4a35..25e7021 100644 --- a/sample/src/main/res/layout/activity_main.xml +++ b/sample/src/main/res/layout/activity_main.xml @@ -11,7 +11,6 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:orientation="vertical" tools:context=".MainActivity" tools:ignore="ContentDescription"> @@ -36,32 +35,42 @@ - + android:layout_height="wrap_content"> - + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintWidth_max="632dp" + android:layout_gravity="center_horizontal" + android:orientation="vertical"> + + - - + + +