radiobutton的使用
来源:互联网 发布:linux samba用户 编辑:程序博客网 时间:2024/06/06 01:46
radiobutton就是一次只能有一个button是选中状态
<RadioGroup
android:layout_width="match_parent"android:layout_height="wrap_content"
>
<RadioButton
android:id="@+id/bt1"
android:drawableTop="@drawable/bt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/wode"
android:text="按键一"
/>
<RadioButton
android:id="@+id/bt2"
android:drawableTop="@drawable/bt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/wode"
android:text="你好啊"
android:checked="true"
/>
<RadioButton
android:id="@+id/bt3"
android:drawableTop="@drawable/bt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/wode"
android:text="meqingkung"
/>
</RadioGroup>
wode style
<style
name="wode"
>
<item name="android:button">@null</item>
</style>
drawable、bt
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@drawable/alb" android:state_pressed="true" />
<item android:drawable="@drawable/alb" android:state_checked="true" />
<item android:drawable="@drawable/alc" />
</selector>
0 0
- RadioButton的使用
- 单选框RadioButton的使用
- radiobutton的使用
- radiobutton的使用
- RadioButton的使用
- radioButton的使用
- CheckBox与RadioButton的使用
- Android组件的使用:RadioButton
- RadioButton和CheckBox的使用
- 安卓RadioButton的使用
- RadioButton的特定使用场景
- RadioButton与 checkBox的使用
- RadioButton下划线效果的使用
- Android中RadioButton的使用
- RadioButton和RadioGroup的使用
- asp.net的RadioButton控件的使用
- android中checkbox和radiobutton的使用
- Android PopupWindow RadioGroup RadioButton 的使用
- Maven学习总结(二)——Maven项目构建过程练习
- Groovy创建和解析json
- 关于myecilpse debug模式启动报错 transport、 error 200问题
- Json和xml的优缺点
- grails自定义标签
- radiobutton的使用
- 30个Python实用技巧
- iOS实用技巧 - AFNetworking2安全的使用自签证书访问HTTPS
- Eclipse导入Maven项目并启动的步骤
- 【BLE】CC2541之32.768kHZ外部晶振
- grails Tags
- js轮播的实现
- 多路径路由算法选择(2)——回顾传统的动态路由协议(RIP、OSPF、BGP、IGRP、EIGRP、IS-IS)
- 小京东等产品后台版权及logo修改教程[ecshop二次开发]