Android切换按钮图像看起来不好
如何修复切换按钮的外观 在我的手机上,它看起来是正确的: 但在其他设备上,它看起来像垃圾:Android切换按钮图像看起来不好,android,togglebutton,Android,Togglebutton,如何修复切换按钮的外观 在我的手机上,它看起来是正确的: 但在其他设备上,它看起来像垃圾: 切换按钮选择器 <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/toggle_on" android:state_checked="true" /> <item android:drawable="@drawabl
切换按钮选择器
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/toggle_on" android:state_checked="true" />
<item android:drawable="@drawable/toggle_off" android:state_checked="false" />
我不知道这个愚蠢的把戏是否适合你,但是: 替换
android:textOff=""
android:textOn=""
与
android:textOff=""
android:textOn=""
android:textOff=" "
android:textOn=" "