【发布时间】:2016-10-29 18:55:25
【问题描述】:
android 复选框的默认尺寸对于我的目的来说太小了,所以我改变了它们的整体尺寸,但是随着它们的新尺寸,它们的边框现在非常厚。
我可以通过什么方式更改厚度?我非常喜欢复选框的默认行为,所以我唯一想改变的是边框的厚度。
用于使复选框变大的代码:
<CheckBox
android:id="@+id/item_switch"
android:layout_width="160dp"
android:layout_height="160dp"
android:button="@null"
android:background="?android:attr/listChoiceIndicatorMultiple"/>
来自这个SO answer。
【问题讨论】:
-
你能提供你的复选框xml代码吗?
-
我更新了 OP。
-
使用
android:layout_width="wrap_content"和android:layout_height="wrap_content"
标签: android checkbox styles thickness