android中自定义checkbox的图片和大小
摘要:1.在drawable中创建文件checkbox_selector.xml:
1.在drawable中创建文件checkbox_selector.xml:
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="/apk/res/android"> <item android:state_checked="true" android:drawable="@drawable/checkbox_ok" /><!--设置选中图片--> <item android:state_checked="false" android:drawable="@drawable/checkbox_empty" /><!--设置未选中图片--> </selector>
【android中自定义checkbox的图片和大小】相关文章:
★ Android布局——Preference自定义layout的方法
上一篇:
Android 使用新浪微博SSO授权
下一篇:
android自动更新软件版本