问题
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?
回答1:
Use:
<android.support.v7.widget.SwitchCompat
...
android:background="@null" />
来源:https://stackoverflow.com/questions/27999583/selection-box-around-android-support-v7-widget-switchcompat