[Android] Wizard: Change chip for switch

Geoffrey Métais git at videolan.org
Tue Oct 9 17:59:11 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Oct  9 11:42:30 2018 +0200| [ffbcb92c47ddc7e9ea760879a4a707e50fa717a4] | committer: Geoffrey Métais

Wizard: Change chip for switch

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

 vlc-android/res/layout/ml_wizard_activity.xml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/vlc-android/res/layout/ml_wizard_activity.xml b/vlc-android/res/layout/ml_wizard_activity.xml
index b184706fc..9fc69c135 100644
--- a/vlc-android/res/layout/ml_wizard_activity.xml
+++ b/vlc-android/res/layout/ml_wizard_activity.xml
@@ -7,18 +7,19 @@
     android:layout_height="wrap_content"
     android:padding="16dp">
 
-    <android.support.design.chip.Chip
+    <Switch
         android:id="@+id/wizard_check_scan"
-        android:layout_width="wrap_content"
+        android:layout_width="0dp"
         android:layout_height="wrap_content"
         android:layout_marginTop="16dp"
         android:checked="true"
         android:checkable="true"
         android:text="@string/ml_wizard_scan_checkbox"
         app:layout_constraintStart_toStartOf="parent"
+        app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintTop_toBottomOf="@+id/wizard_description" />
 
-    <android.support.design.button.MaterialButton
+    <Button
         android:id="@+id/wizard_validate"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"



More information about the Android mailing list