Android 检查SG3上的异常行为

Android 检查SG3上的异常行为,android,checkbox,samsung-mobile,Android,Checkbox,Samsung Mobile,对,我在安卓上玩CheckBox。我为它应用了背景色,这在除了Galaxy S3之外的所有设备上都能很好地工作。当我添加背景色时,它就从屏幕上消失了 <CheckBox android:layout_width="wrap_content" android:layout_height="wrap_content" android:l

对,我在安卓上玩CheckBox。我为它应用了背景色,这在除了Galaxy S3之外的所有设备上都能很好地工作。当我添加背景色时,它就从屏幕上消失了

                    <CheckBox
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginRight="10dip"
                    android:background="@android:color/white"/>

这是我所有的,但它隐藏在S3上。知道为什么吗


这似乎发生在API11和API16之间。在某些galaxy s3型号的复选框上使用自定义选择器时,上面或下面的任何选项都可以

我遇到过类似的问题。最后我给了复选框一个固定的高度和宽度,解决了这个问题。@WillieNel这是我的错,我应该用android:button来设计我的按钮,而不是android:background!嗯!很酷,很高兴你把它整理好了。快乐编码!:)