手机
当前位置:查字典教程网 >编程开发 >安卓软件开发 >android中自定义checkbox的图片和大小
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中将一个图片切割成多个图片的实现方法

Android中的Adapter简单介绍

Android自定义格式显示Button的布局思路

android通过http协议获得图片

Android控件系列之CheckBox使用介绍

android 中 webview 怎么用 localStorage

Android用户界面开发之:TextView的使用实例

android开发中获取手机分辨率大小的方法

Android中删除文件以及文件夹的命令记录

Android开发之选项组件

精品推荐
分类导航