[Android] Improve onboarding scanning margins

Nicolas Pomepuy git at videolan.org
Tue Mar 17 15:11:02 CET 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Mar 17 15:06:13 2020 +0100| [1e0fcfd070eb0f233a772923b981374b3b36dfe7] | committer: Nicolas Pomepuy

Improve onboarding scanning margins

> https://code.videolan.org/videolan/vlc-android/commit/1e0fcfd070eb0f233a772923b981374b3b36dfe7
---

 .../vlc-android/res/layout/onboarding_scanning.xml | 74 ++++++++++++----------
 1 file changed, 40 insertions(+), 34 deletions(-)

diff --git a/application/vlc-android/res/layout/onboarding_scanning.xml b/application/vlc-android/res/layout/onboarding_scanning.xml
index 58e6a409c..f8b41d0a7 100644
--- a/application/vlc-android/res/layout/onboarding_scanning.xml
+++ b/application/vlc-android/res/layout/onboarding_scanning.xml
@@ -46,44 +46,50 @@
         app:layout_constraintTop_toBottomOf="@+id/imageView2" />
 
     <Switch
-        android:id="@+id/scanningEnableSwitch"
-        android:layout_width="0dp"
-        android:layout_height="wrap_content"
-        android:layout_marginStart="8dp"
-        android:layout_marginTop="16dp"
-        android:layout_marginEnd="8dp"
-        android:layout_marginBottom="8dp"
-        android:checked="true"
-        android:text="@string/onboarding_scanning_enable"
-        android:textSize="18sp"
-        app:layout_constraintBottom_toTopOf="@+id/autoScanningCheckbox"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintStart_toStartOf="parent"
-        app:layout_constraintTop_toBottomOf="@+id/textView4"
-        app:layout_constraintVertical_chainStyle="packed" />
+            android:id="@+id/scanningEnableSwitch"
+            android:layout_width="0dp"
+            android:layout_height="wrap_content"
+            android:layout_marginStart="16dp"
+            android:layout_marginTop="16dp"
+            android:layout_marginEnd="16dp"
+            android:layout_marginBottom="8dp"
+            android:checked="true"
+            android:text="@string/onboarding_scanning_enable"
+            android:textSize="18sp"
+            app:layout_constraintBottom_toTopOf="@+id/autoScanningCheckbox"
+            app:layout_constraintEnd_toEndOf="parent"
+            app:layout_constraintStart_toStartOf="parent"
+            app:layout_constraintTop_toBottomOf="@+id/textView4"
+            app:layout_constraintVertical_chainStyle="packed" />
 
     <CheckBox
-        android:id="@+id/autoScanningCheckbox"
-        android:checked="true"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:layout_marginBottom="16dp"
-        android:layout_marginTop="8dp"
-        android:text="@string/auto_rescan_summary"
-        app:layout_constraintTop_toBottomOf="@+id/scanningEnableSwitch"
-        app:layout_constraintBottom_toTopOf="@+id/scanningFolderCheckbox"
-        tools:layout_editor_absoluteX="8dp" />
+            android:id="@+id/autoScanningCheckbox"
+            android:layout_width="0dp"
+            android:layout_height="wrap_content"
+            android:layout_marginStart="24dp"
+            android:layout_marginTop="8dp"
+            android:layout_marginEnd="16dp"
+            android:layout_marginBottom="8dp"
+            android:checked="true"
+            android:text="@string/auto_rescan_summary"
+            app:layout_constraintBottom_toTopOf="@+id/scanningFolderCheckbox"
+            app:layout_constraintEnd_toEndOf="parent"
+            app:layout_constraintStart_toStartOf="parent"
+            app:layout_constraintTop_toBottomOf="@+id/scanningEnableSwitch" />
 
     <CheckBox
-        android:id="@+id/scanningFolderCheckbox"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:layout_marginTop="16dp"
-        android:layout_marginBottom="16dp"
-        android:text="@string/onboarding_scan_customize"
-        app:layout_constraintBottom_toBottomOf="parent"
-        app:layout_constraintTop_toBottomOf="@+id/autoScanningCheckbox"
-        tools:layout_editor_absoluteX="8dp" />
+            android:id="@+id/scanningFolderCheckbox"
+            android:layout_width="0dp"
+            android:layout_height="wrap_content"
+            android:layout_marginStart="24dp"
+            android:layout_marginTop="8dp"
+            android:layout_marginEnd="16dp"
+            android:layout_marginBottom="16dp"
+            android:text="@string/onboarding_scan_customize"
+            app:layout_constraintBottom_toBottomOf="parent"
+            app:layout_constraintEnd_toEndOf="parent"
+            app:layout_constraintStart_toStartOf="parent"
+            app:layout_constraintTop_toBottomOf="@+id/autoScanningCheckbox" />
 
 
 </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file



More information about the Android mailing list