CheckBox实现单选怎么做? checkbox只能做多选吧,如果要做单选就只能用radiogroup吧 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 楼上说对了,CheckBox可以自定义图片<?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/checkbox_select" /> <!-- checked --> <item android:state_checked="false" android:drawable="@drawable/checkbox" /> <!-- default --> </selector> 然后给Android:button="@drawable/XXX" 希望对楼主有帮助 帮助戳一下http://vote.blog.csdn.net/blogstaritem/blogstar2013/xiaanming 所有的CheckBox存入一个List。当某个CheckBox选中的时候,遍历List,把其他的CheckBox设置成非选中。这样就相当于一个单选框了。 sqlite3数据库用工具加密了,但不知道怎么实现在程序里打开 运行Android项目启动不模拟器 运行一个非常简单的json小程序,运行就出现一堆红字错误、求解。 求关于SIM卡的资料,android的最好 View显示从数据库中读出的内容问题 有既支持Iphone又支持android开发的工具软件吗 listView setAdapter()时 数据绑定报错 在eclipse上运行安卓源码的时候报错 android 使用自定义控件的奇怪问题 我想开发一个本地服务端,服务端的同学帮忙指点下。 Android登陆接口 如何让imagebutton位置随点击listview的行的时候改变位置?
<?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/checkbox_select" /> <!-- checked -->
<item android:state_checked="false" android:drawable="@drawable/checkbox" /> <!-- default -->
</selector>
然后给Android:button="@drawable/XXX" 希望对楼主有帮助
帮助戳一下http://vote.blog.csdn.net/blogstaritem/blogstar2013/xiaanming