[Android] Increase swipe to unlock height

Arnaud J git at videolan.org
Wed Oct 21 09:02:41 CEST 2020


vlc-android | branch: 3.3.x | Arnaud J <github at arnaud.dev> | Tue Oct 13 16:03:31 2020 +0200| [a3967e023c9790aa5f450c4d229582722684c901] | committer: Nicolas Pomepuy

Increase swipe to unlock height

For ease of use while walking with a hand held device

Ref https://code.videolan.org/videolan/vlc-android/-/issues/1501

(cherry picked from commit 83a05aa0689ee8b8710dd97958be0305ed5f5f56)

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

 application/resources/src/main/res/drawable/ic_swipe_unlock.xml | 4 ++--
 application/vlc-android/res/layout/swipe_to_unlock.xml          | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/application/resources/src/main/res/drawable/ic_swipe_unlock.xml b/application/resources/src/main/res/drawable/ic_swipe_unlock.xml
index 0e5b7bbcfc..64c671dc19 100644
--- a/application/resources/src/main/res/drawable/ic_swipe_unlock.xml
+++ b/application/resources/src/main/res/drawable/ic_swipe_unlock.xml
@@ -1,6 +1,6 @@
 <vector xmlns:android="http://schemas.android.com/apk/res/android"
-        android:width="32dp"
-        android:height="32dp"
+        android:width="48dp"
+        android:height="48dp"
         android:viewportWidth="32"
         android:viewportHeight="32">
     <path
diff --git a/application/vlc-android/res/layout/swipe_to_unlock.xml b/application/vlc-android/res/layout/swipe_to_unlock.xml
index 30b0599530..315f4b993b 100644
--- a/application/vlc-android/res/layout/swipe_to_unlock.xml
+++ b/application/vlc-android/res/layout/swipe_to_unlock.xml
@@ -32,7 +32,7 @@
             android:id="@+id/swipe_text"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
-            android:layout_marginStart="60dp"
+            android:layout_marginStart="76dp"
             android:layout_marginEnd="24dp"
             android:text="@string/swipe_unlock"
             android:textAllCaps="true"
@@ -47,7 +47,7 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:orientation="vertical"
-            app:layout_constraintGuide_begin="18dp" />
+            app:layout_constraintGuide_begin="28dp" />
 
     <ImageView
             android:id="@+id/swipe_icon"



More information about the Android mailing list