Commit 0966faf4 authored by narinder Rana's avatar narinder Rana
Browse files

Update SwitchCompat like Ios

parent bac731ec
......@@ -18,6 +18,7 @@
<androidx.gridlayout.widget.GridLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingEnd="16dp"
......@@ -36,7 +37,9 @@
app:layout_gravity="center_vertical"
app:layout_row="0" />
<!--android:theme="@style/ThemeOverlay.Control.Accent"-->
<!--android:theme="@style/ThemeOverlay.Control.Accent"
SwitchCompat:track="@drawable/switch_track_selector"
-->
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/onoff"
android:layout_width="wrap_content"
......@@ -44,9 +47,9 @@
android:layout_marginTop="@dimen/alarm_clock_vertical_margin"
android:minHeight="@dimen/touch_target_min_size"
android:minWidth="@dimen/touch_target_min_size"
SwitchCompat:track="@drawable/switch_track_selector"
android:thumb="@drawable/thumb_selector"
app:track="@drawable/track_selector"
SwitchCompat:track="@drawable/track_selector"
app:layout_column="6"
app:layout_columnSpan="2"
app:layout_gravity="center_vertical"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment