Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 549
Zander B Avatar asked Jan 17 '15 12:01

Zander B


1 Answers

Use:

<android.support.v7.widget.SwitchCompat 
    ...
    android:background="@null" />
like image 105
natario Avatar answered Nov 04 '22 15:11

natario