我想把CheckBox做小一点/大一点,我该怎么做?
发布于 2010-01-28 15:36:53
您只需要设置相关的可绘制项目,并在复选框中进行设置:
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="new checkbox"
android:background="@drawable/my_checkbox_background"
android:button="@drawable/my_checkbox" />
诀窍在于如何设置可绘制的内容。Here's a good tutorial about this。
发布于 2013-04-24 04:05:08
从API级别11开始,存在另一种方法:
<CheckBox
...
android:scaleX="0.70"
android:scaleY="0.70"
/>
发布于 2016-11-16 16:16:34
我使用
android:scaleX="0.70" android:scaleY="0.70"
调整复选框大小的步骤
然后我像这样设置页边距
android:layout_marginLeft="-10dp"
要调整复选框的位置,请执行以下操作。
https://stackoverflow.com/questions/2151241
复制相似问题