I\'ve tried using the following link to change the color of a SwitchCompat:
How to change the color of a SwitchCompat
Notice the low constrast in my switch:<
With the MaterialSwitch provided by the Material Components Library.
MaterialSwitch
materialThemeOverlay
And in the layout:
style
with thumb_selector:
and track_selector: