设为首页 加入收藏

TOP

Android开发之RadioButton和CheckBox
2014-11-24 12:02:46 来源: 作者: 【 】 浏览:1
Tags:Android 开发 RadioButton CheckBox

RadioButton



类结构图:



实战演练:


1、如何设置RadioButton的对齐方式:


通过android:orientation其值有:vertical、horizontal


垂直:


效果:



水平:


效果:



2、如何让RadioButton设置成选中


android:checkedButton="@+id/rautf"


效果:



添加监听器:


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Android使用KSOAP2调用WebService.. 下一篇Android开发之Button和ImageButton

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·我的Linux内核学习笔 (2025-12-26 22:21:10)
·如何评价腾讯开源的 (2025-12-26 22:21:07)
·为什么TCP网络编程中 (2025-12-26 22:21:04)
·Python 数据分析与可 (2025-12-26 21:51:20)
·从零开始学Python之 (2025-12-26 21:51:17)