手机
当前位置:查字典教程网 >编程开发 >安卓软件开发 >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中的Adapter简单介绍

android滑动解锁震动效果的开启和取消

Android中的文件I/O操作

Android调用google地图生成路线图实现代码

Android应用图标在状态栏上显示实现原理

android控件之WebView控件缩小

Android中关于Notification及NotificationManger的详解

Android开发之SQLite的使用方法

Android布局——Preference自定义layout的方法

Android安卓中循环录像并检测内存卡容量

精品推荐
分类导航