Search code examples
androidwidgetmaterial-designswitchcompat

Selection Box around android.support.v7.widget.SwitchCompat


I am trying to mimic the new material design switch in my app and the switchcompat works pretty well. The only problem is a grey selection box appears around the switch on touch and really takes away from the clean look. Is this something I can remove?


Solution

  • Use:

    <android.support.v7.widget.SwitchCompat 
        ...
        android:background="@null" />