为什么自定义多选框样式在别的机
aide吧
全部回复
仅看楼主
level 8
为什么自定义多选框样式在别的机子上显示不一致?
2015年09月02日 12点09分 1
level 13
你是自定义的selector还是style?
2015年09月02日 12点09分 2
两个都设置
2015年09月02日 12点09分
@随风2014🍁 你截个图
2015年09月02日 13点09分
level 8
在别的机子上我无法截图,在别的机子上文字的框相隔很远。这个文字和框的距离我在styles设置了。
2015年09月02日 13点09分 3
额。。。。我也遇到过一样的问题。。。。貌似是系统的原因,设置padding无效果,后来我用drawableLeft代替了
2015年09月02日 13点09分
回复沫湮_:具体怎么做?再提示一下
2015年09月02日 22点09分
level 13
我是这样自定义的
首先在drawable目录下定义一个selector
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="false"
android:drawable="@drawable/checkbox_normal" />
<item android:state_checked="true"
android:drawable="@drawable/checkbox_pressed" />
</selector>
2015年09月02日 23点09分 5
嗯,然后的
2015年09月02日 23点09分
我也是这样的
2015年09月02日 23点09分
然后在styles中设置为Button样式
2015年09月02日 23点09分
回复 qq243044309 :我没设置style
2015年09月02日 23点09分
1