版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zyf13716764752/article/details/82868173
<Switch
android:track="@drawable/switch_track"
android:thumb="@drawable/swith_thumb"
android:id="@+id/zx_switch"
android:layout_marginRight="15dp"
android:layout_width="match_parent"
android:layout_height="match_parent" />