Commit 639f0444 authored by narinder Rana's avatar narinder Rana
Browse files

Update SwitchCompat like Ios

parent 0cea50b2
......@@ -7,4 +7,4 @@
<stroke android:width="2dp" android:color="#0000ffff" />
</shape> <!-- shape circle -->
</item>
</selector>
\ No newline at end of file
</selector>
......@@ -4,7 +4,7 @@
<item android:state_checked="true">
<shape android:shape="rectangle">
<size android:width="36dp" android:height="20dp"/>
<solid android:width="1dp" android:color="@color/accent_color"/>
<solid android:width="1dp" android:color="@color/color_default_blue1"/>
<corners android:radius="50dp"/>
</shape>
</item>
......@@ -17,4 +17,4 @@
</shape>
</item>
</selector>
\ No newline at end of file
</selector>
......@@ -36,6 +36,7 @@
app:layout_gravity="center_vertical"
app:layout_row="0" />
<!--android:theme="@style/ThemeOverlay.Control.Accent"-->
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/onoff"
android:layout_width="wrap_content"
......@@ -43,11 +44,15 @@
android:layout_marginTop="@dimen/alarm_clock_vertical_margin"
android:minHeight="@dimen/touch_target_min_size"
android:minWidth="@dimen/touch_target_min_size"
android:theme="@style/ThemeOverlay.Control.Accent"
app:layout_column="3"
app:layout_columnSpan="2"
app:layout_gravity="center_vertical"
app:layout_row="0" />
app:layout_row="0"
android:thumb="@drawable/thumb_selector"
app:track="@drawable/track_selector"
/>
<com.android.deskclock.widget.EllipsizeLayout
android:layout_width="0dp"
......
......@@ -36,19 +36,25 @@
app:layout_gravity="center_vertical"
app:layout_row="0" />
<androidx.appcompat.widget.SwitchCompat
<!-- android:theme="@style/ThemeOverlay.Control.Accent"-->
<android.support.v7.widget.SwitchCompat
android:id="@+id/onoff"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
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:theme="@style/ThemeOverlay.Control.Accent"
app:layout_column="6"
app:layout_columnSpan="2"
app:layout_gravity="center_vertical"
app:layout_row="0" />
app:layout_row="0"
android:thumb="@drawable/thumb_selector"
app:track="@drawable/track_selector"
/>
<CheckBox
android:id="@+id/repeat_onoff"
......
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