这是我的复选框的 XML:
<CheckBox
android:id="@+id/atm_checkbox"
android:layout_width="20dp"
android:layout_height="20dp"
android:background="@color/input_color" />
它看起来像这样:
http://imageshack.us/photo/my-images/528/47342915.png/
这是我在网上找到的:
<CheckBox
android:id="@+id/chkAndroid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/chk_android"
android:checked="true" />
看起来像this
如何将我的复选框更改为看起来像我在互联网上找到的那个。 由于我的代表 <10,我无法上传我的复选框的图片,或者任何人都可以帮助我如何设计复选框以使其看起来更好
我认为这两个 xml 具有相似的代码,但为什么它们看起来如此不同?
最佳答案
如果您想要自定义复选框的外观,请参阅此 tutorial并找到一切。
顺便说一句,您链接中的复选框
适用于Android3.0及更高版本。
关于android - 如何使复选框在 android 中看起来更好,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11045871/