[android] Use material switch in all views

Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
Co-authored-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
Co-committed-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
Jean-Baptiste
2025-11-28 08:33:10 +01:00
committed by x7z4w
parent a5174623c2
commit 67d8249e5a
6 changed files with 28 additions and 27 deletions

View File

@@ -38,7 +38,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:textColor="?android:attr/textColorPrimary"/>
<androidx.appcompat.widget.SwitchCompat
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/avoid_tolls_btn"
android:layout_width="wrap_content"
android:layout_height="match_parent"
@@ -66,7 +66,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:textColor="?android:attr/textColorPrimary"/>
<androidx.appcompat.widget.SwitchCompat
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/avoid_dirty_roads_btn"
android:layout_width="wrap_content"
android:layout_height="match_parent"
@@ -94,7 +94,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:textColor="?android:attr/textColorPrimary"/>
<androidx.appcompat.widget.SwitchCompat
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/avoid_paved_roads_btn"
android:layout_width="wrap_content"
android:layout_height="match_parent"
@@ -122,7 +122,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:textColor="?android:attr/textColorPrimary"/>
<androidx.appcompat.widget.SwitchCompat
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/avoid_ferries_btn"
android:layout_width="wrap_content"
android:layout_height="match_parent"
@@ -150,7 +150,7 @@
android:layout_gravity="center_vertical"
android:layout_height="wrap_content"
android:textColor="?android:attr/textColorPrimary"/>
<androidx.appcompat.widget.SwitchCompat
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/avoid_motorways_btn"
android:layout_width="wrap_content"
android:padding="@dimen/margin_half_double_plus"
@@ -178,7 +178,7 @@
android:layout_gravity="center_vertical"
android:layout_height="wrap_content"
android:textColor="?android:attr/textColorPrimary"/>
<androidx.appcompat.widget.SwitchCompat
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/avoid_steps_btn"
android:layout_width="wrap_content"
android:padding="@dimen/margin_half_double_plus"

View File

@@ -260,7 +260,7 @@
android:layout_marginStart="@dimen/editor_margin_left"
android:layout_toStartOf="@+id/sw__wifi"
android:text="@string/category_wifi"/>
<androidx.appcompat.widget.SwitchCompat
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/sw__wifi"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -314,7 +314,7 @@
android:layout_marginStart="@dimen/editor_margin_left"
android:layout_toStartOf="@+id/sw__outdoor_seating"
android:text="@string/outdoor_seating"/>
<androidx.appcompat.widget.SwitchCompat
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/sw__outdoor_seating"
android:layout_width="wrap_content"
android:layout_height="wrap_content"

View File

@@ -173,10 +173,10 @@
android:text="@string/editor_time_allday"
android:textAppearance="@style/MwmTextAppearance.Body1"/>
<androidx.appcompat.widget.SwitchCompat
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/sw__allday"
android:layout_width="48dp"
android:layout_height="48dp"/>
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>