https://kotlinlang.org logo
Title
u

user

06/27/2022, 11:31 AM
How to create iOS style SwitchCompat in Android

https://i.stack.imgur.com/XoxPEm.png

I want to create iOS style of SwitchCompat in Android like in the image above. I have tried with replacing app:track and android:thumb. However, I found out that I can't set a track width that is smaller than 2x of thumb width. Below screenshot is my attempt at Android. You can see the switch track is significantly wider than native iOS Switch. <a href="

https://i.stack.imgur.com/YutMml.png

" rel="nofollow...