DeweySwitch

class DeweySwitch @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) : SwitchCompat

Dewey implementation of the switch toggle control. It customized the following properties from the AndroidX's SwitchCompat:

  • looks of thumb and track

  • size of the toggle

  • background of the toggle under focus (replaced ripple with a neutral color rounded stripe)

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null)