在白色背景下,复选框边框不可见。
我尝试了不同的颜色参数,但都没有成功。
我需要黑色边框的方框。
是的,有一些示例可以制作自定义复选框。
在所有可绘制的示例中,正常的方框位于新形状内部可见。
而且带有android:text=""
文本的可绘制形状非常狭窄。
但是为什么复选框在普通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>
有什么想法吗?谢谢!