[Android] Use new Material Design tools in wizard

Geoffrey Métais git at videolan.org
Mon Sep 24 18:05:10 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Sep 24 17:58:55 2018 +0200| [85dd7613144631324d7f8a15f35131b066178b88] | committer: Geoffrey Métais

Use new Material Design tools in wizard

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

 vlc-android/AndroidManifest.xml               | 2 +-
 vlc-android/res/layout/ml_wizard_activity.xml | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/vlc-android/AndroidManifest.xml b/vlc-android/AndroidManifest.xml
index bc70fd64b..f962cbdb7 100644
--- a/vlc-android/AndroidManifest.xml
+++ b/vlc-android/AndroidManifest.xml
@@ -500,7 +500,7 @@
         <activity
             android:name=".gui.wizard.MLWizardActivity"
             android:configChanges="orientation|screenSize"
-            android:theme="@style/Theme.AppCompat.Light.Dialog"
+            android:theme="@style/Theme.MaterialComponents.Light.Dialog"
             android:label="@string/ml_wizard_title"/>
 
         <service android:name=".extensions.ExtensionManagerService" />
diff --git a/vlc-android/res/layout/ml_wizard_activity.xml b/vlc-android/res/layout/ml_wizard_activity.xml
index 0b5791fe8..b184706fc 100644
--- a/vlc-android/res/layout/ml_wizard_activity.xml
+++ b/vlc-android/res/layout/ml_wizard_activity.xml
@@ -7,22 +7,24 @@
     android:layout_height="wrap_content"
     android:padding="16dp">
 
-    <CheckBox
+    <android.support.design.chip.Chip
         android:id="@+id/wizard_check_scan"
         android:layout_width="wrap_content"
         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_constraintTop_toBottomOf="@+id/wizard_description" />
 
-    <Button
+    <android.support.design.button.MaterialButton
         android:id="@+id/wizard_validate"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:onClick="apply"
         android:text="@string/ok"
+        android:layout_marginTop="16dp"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintTop_toBottomOf="@+id/wizard_check_scan"



More information about the Android mailing list