android自定义checkbox
来源:互联网 发布:java 获取webapp路径 编辑:程序博客网 时间:2024/05/21 06:24
1.首先在drawable文件夹中添加drawable文件checkbox_style.xml。
- <?xml version="1.0" encoding="utf-8"?>
- <selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:drawable="@drawable/checkbox_pressed" android:state_checked="true"/>
- <item android:drawable="@drawable/checkbox_normal" android:state_checked="false"/>
- <item android:drawable="@drawable/checkbox_normal"/>
- </selector>
- <style name="CustomCheckboxTheme" parent="@android:style/Widget.CompoundButton.CheckBox">
- <item name="android:button">@drawable/checkbox_style</item>
- </style>
- <CheckBox
- android:id="@+id/select_all"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- style="@style/CustomCheckboxTheme" />
使用到的图片资源
checkbox_normal.png
checkbox_pressed.png
0 0
- android CheckBox 自定义样式
- android自定义checkbox
- Android 自定义CheckBox 样式
- Android 自定义CheckBox图片
- android 自定义checkbox 样式
- Android 自定义CheckBox样式
- android 自定义checkbox
- Android 自定义checkBox
- android自定义checkbox
- Android自定义checkbox样式
- android 自定义checkbox
- android 自定义checkbox 样式
- 自定义Checkbox样式--Android
- Android自定义CheckBox
- Android 自定义CheckBox 样式
- Android CheckBox自定义
- Android 自定义的CheckBox
- Android自定义CheckBox样式
- Stacking Autoencoders VS Stacking RBMs
- 噪声
- 成为明星程序员的10个提示
- 熵_信息论
- 使用 viewport meta 标签在手机浏览器上控制布局
- android自定义checkbox
- VC6.0中使用VISIO ACTIVEX控件
- wine qq 2013 for linux Ubuntu 64位兼容
- MATLAB中测试程序运行时间的函数
- mount参数详解逐步更新(--bind、)
- 总结leetcode上sort colors题C++的5种解法
- Linux软件安装与卸载小结
- Stacking Autoencoders VS CDBN
- 我眼中的百度QA 第一篇:百度QA的特点与核心价值