复选框边框在白色背景上不可见。如何设置复选框边框颜色
我打了没有成功不同的颜色参数。 我需要箱子的黑色边框。 是的,有自定义复选框的例子。 在所有可绘制的示例中,普通框在新形状内部可见。 而绘制形状狭窄而不机器人文字:=“”
但为什么复选框不平常的xml看行不行:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layoutBottom1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="#FFFFFF"
android:gravity="center"
>
<CheckBox
android:id="@+id/checkBottom1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="AAAA"
android:visibility="visible"
android:textColor="#000000"
android:checked="true"
/>
</LinearLayout>
任何想法?谢谢!
在IntelliJ Idea的预览中,它看起来没问题。但在仿真器和设备上不可见。在你的参考文献中,他们改变复选标记的颜色但我想改变框边框颜色 – Niaz 2014-10-19 05:53:15
因此,您需要为框边框设置一个切片。切片,如您将放置在可绘制文件夹中的图像。 – Antrromet 2014-10-19 06:04:50
谢谢,但没有理解。你的意思是什么? – Niaz 2014-10-19 06:07:34