Added new style for switch
This commit is contained in:
parent
39b0b4c931
commit
b0605ff183
10 changed files with 108 additions and 63 deletions
30
appthemehelper/src/main/res/drawable/ate_track.xml
Normal file
30
appthemehelper/src/main/res/drawable/ate_track.xml
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright (c) 2019 Hemanth Savarala.
|
||||
~
|
||||
~ Licensed under the GNU General Public License v3
|
||||
~
|
||||
~ This is free software: you can redistribute it and/or modify it under
|
||||
~ the terms of the GNU General Public License as published by
|
||||
~ the Free Software Foundation either version 3 of the License, or (at your option) any later version.
|
||||
~
|
||||
~ This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
~ without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
~ See the GNU General Public License for more details.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_checked="true">
|
||||
<shape android:dither="true" android:shape="rectangle" android:useLevel="false" android:visible="true">
|
||||
<solid android:color="@color/md_deep_purple_A700" />
|
||||
<corners android:radius="25dp" />
|
||||
<size android:width="2dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item android:state_checked="false">
|
||||
<shape android:dither="true" android:shape="rectangle" android:useLevel="false" android:visible="true">
|
||||
<solid android:color="@color/md_white_1000" />
|
||||
<corners android:radius="25dp" />
|
||||
<size android:width="2dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
24
appthemehelper/src/main/res/drawable/toggle_switch.xml
Normal file
24
appthemehelper/src/main/res/drawable/toggle_switch.xml
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright (c) 2019 Hemanth Savarala.
|
||||
~
|
||||
~ Licensed under the GNU General Public License v3
|
||||
~
|
||||
~ This is free software: you can redistribute it and/or modify it under
|
||||
~ the terms of the GNU General Public License as published by
|
||||
~ the Free Software Foundation either version 3 of the License, or (at your option) any later version.
|
||||
~
|
||||
~ This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
~ without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
~ See the GNU General Public License for more details.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_checked="false">
|
||||
<shape android:dither="true" android:shape="rectangle" android:useLevel="false" android:visible="true">
|
||||
<solid android:color="@color/md_white_1000" />
|
||||
<corners android:radius="10dp" />
|
||||
<size android:width="20dp" android:height="20dp" />
|
||||
<stroke android:width="6dp" android:color="#0000ffff" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
Loading…
Add table
Add a link
Reference in a new issue