Android 普通Switch开关样式修改成自己想要的,代码如下:
<Switch
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:thumb="@drawable/switch_custom_thumb_selector"
android:track="@drawable/switch_custom_track_selector" />
1.switch_custom_thumb_selector.xml