android 自定义checkbox
来源:互联网 发布:java 百分比格式化 编辑:程序博客网 时间:2024/05/18 21:10
(drawable/message_checkbox_selection.xml)<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/check_on" android:state_checked="true"></item> <item android:drawable="@drawable/check_on" android:state_selected="true"></item> <item android:drawable="@drawable/check_on" android:state_pressed="true"></item> <item android:drawable="@drawable/check_no"></item> </selector> (values/message_styles.xml)<?xml version="1.0" encoding="utf-8"?><resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="Message"></style> <style name="Message.checkbox" parent="@android:style/Widget.CompoundButton.CheckBox"> <item name="android:button">@drawable/message_checkbox_selection</item> <item name="android:paddingLeft">25.0dip</item> <item name="android:maxHeight">10.0dip</item> </style></resources>(view) <CheckBox android:id="@+id/cb_checkbox" style="@style/Message.checkbox" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:layout_marginTop="16dp" android:focusable="false" />
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样式
- GY编辑平台产品总结
- 被遗忘的Logrotate
- Shell学习文件权限
- 引用(ajaxfileupload.js) ajaxfileupload.js报这错jQuery.handleError is not a function
- Cocos2dx 3.0 过渡篇(十五)帧动画的存储播放
- android 自定义checkbox
- nyoj 19 擅长排列的小明
- windows及其liunx下查看端口占用情况,及其杀死占用的端口
- 在Oracle的FORM中高亮显示鼠标点击或光标所在的行
- Cocos2dx 3.0 过渡篇(十六)用ClippingNode做游戏的新手引导
- 写一个自己的Dictionary
- Python urllib模块与urlopen()函数解析
- 棋牌运营的微信营销你为什么做不成功
- CF 425B Sereja and Table