Jetpack Compose Custom Switch Button with Icon

jetpack compose custom switch button

This is a custom switch button made with Android Jetpack Compose. It contains an icon on the thumb. In the ON state, it shows the Done icon and the OFF state contains the Close icon. You can download the source code for free below. The switch button is made with several APIs like Box, Icon, … Read more

Jetpack Compose Custom Switch Design 2

Android Jetpack Compose Switch

This is a Jetpack Compose custom switch. It is made with Canvas API to draw the track and thumb. It doesn’t contain any text inside the switch. You can adjust its size and color. I have added onClick event on the canvas. The state will be toggled between ON and OFF. The default Jetpack Compose … Read more

Android Custom Switch Using Jetpack Compose

Android Jetpack Compose Switch

This is a custom switch button made with Android Jetpack Compose. It uses the Canvas to draw the thumb and track. The main problem with the default switch is that you cannot change the size, padding, animation duration, etc… So, I designed it using the Canvas API. The Jetpack Compose custom switch takes multiple parameters. … Read more