How to set width and track text in a Switch/SwitchCompat button and achieve this result? (Image and GIF attached)
问题 I need to implement a button in my app like this I used a SwitchCompat button but the closest I arrived was to this point, having two main problems: 1 - The width of the button does not adjust correctly when screen sizes change (drawable gets cut off, become too small etc), it is important that the width occupies the parent view correctly ( a small linear layout enclosing it) 2 - I was not able to understand how I could get the letters in the Switch Track Is it possible to achieve this result