checkbox点击切换图片
2013-11-18 16:36
106 查看
layout.xml
styles.xml
drawable下面建立task_type_image_selector.xml
<CheckBox android:id="@+id/task_info_list_button" android:layout_width="0dp" android:layout_height="wrap_content" android:focusable="false" style="@style/task_info_checkbox" android:layout_weight="1" />
styles.xml
<style name="task_info_checkbox"> <item name="android:button">@drawable/task_type_image_selector</item> </style>
drawable下面建立task_type_image_selector.xml
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android" > <item android:state_checked="true" android:drawable="@drawable/btn_check_on" /> <item android:state_checked="false" android:drawable="@drawable/btn_check_off_pressed" /> </selector>
相关文章推荐
- js实现点击切换checkbox背景图片的简单实例
- js实现点击切换checkbox背景图片
- 点击按钮切换相应的内容,可用于转换图片
- 点击切换图片的底部导航
- 基于jquery鼠标点击图片翻开切换效果
- 原生JS实现隐藏显示图片 JS实现点击切换图片效果
- 纯css3点击切换图片-纯css3点击切换图标
- 通过js写的一个比较简单的点击切换图片效果
- 登录+注册+跳转搜素+详情切换布局+详情点击图片双击放大
- JQuery------实现点击左右按钮,切换图片功能
- jquery小图片左右滚动点击小图切换显示大图
- 点击切换图片
- 通过CSS切换图片效果,点击这个图片可以实现连接功能,这里的图片在一张大图片中,每个并要切换的图片没有切换,通过disposition定位的方式做
- 利用JS实现点击按钮后图片自动切换的简单方法
- selector实现点击图片切换(解决常见的点击无效问题)
- Android 点击图片切换(代码与xml)
- 类型为image的input标签,鼠标点击切换按钮背景图片
- IE6下通过a标签点击切换图片的问题
- 点击切换图片
- Jquery实现点击切换图片并隐藏显示内容