Google launcher-style implementation of switch (enable/disable) icon
...Use app:si_tint_color to set color to icon. The default color is black. Use app:si_animation_duration if you want to change switching state animation duration. Use app:si_no_dash if you don't want to draw dash, when icon is disabled. Use app:si_disabled_alpha to set alpha when icon disabled. The default alpha is .5.
Rich Android Path. Draw as you want. Animate as much as you can. Full Animation Control on Paths and VectorDrawables: Animate any attribute in a specific path in the VectorDrawable.