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

寵の児 提交于 2019-12-08 15:11:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!