Customizing Switch using XML

Android provides us with its default Switch, in particular SwitchCompat. By default it looks like below (enlarged). It uses the provided when turned on (checked).

Default SwitchCompat

--

--

Sharing iOS, Android and relevant Mobile App Development Technology and Learning

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store