0

Android チェックボックスのデフォルトのサイズは私の目的には小さすぎたため、全体のサイズを変更しましたが、新しいサイズでは境界線がひどく太くなっています。

太さを変えるにはどうしたらいいですか?チェックボックスのデフォルトの動作が気に入っているので、変更したいのは境界線の太さだけです。

チェックボックスを大きくするために使用されるコード:

<CheckBox
android:id="@+id/item_switch"
android:layout_width="160dp"    
android:layout_height="160dp"
android:button="@null"
android:background="?android:attr/listChoiceIndicatorMultiple"/>

このSOの回答から。

4

1 に答える 1

0

したがって、コードは次のようになります

<CheckBox
android:id="@+id/item_switch"
android:layout_width="wrap_content"   
android:layout_height="wrap_content"
android:button="@null"
android:background="?android:attr/listChoiceIndicatorMultiple"/>
于 2016-10-29T19:13:07.463 に答える