custom ur own radio button style
来源:互联网 发布:网络回拨电话合法吗 编辑:程序博客网 时间:2024/05/07 07:57
1.
在res/drawable下创建radiobutton.xml:
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_enabled="true"
android:state_checked="true"
android:drawable="@drawable/check"/>
<item
android:state_enabled="true"
android:state_checked="false"
android:drawable="@drawable/checknull"/>
<item
android:state_enabled="false"
android:state_checked="true"
android:drawable="@drawable/check_disable"/>
<item
android:state_enabled="false"
android:state_checked="false"
android:drawable="@drawable/checknull_disable"/>
</selector>
2.
创建4个图片:
check.png check_disable.png checknull.png checknull_disable.png
3.
添加 android:button = "@drawable/radiobutton"标签:
<RadioButton
android:id="@+id/MainAfInfinityRadioButtonId"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight = "1"
android:textColor="#FFFFFF"
android:textStyle="bold"
android:text="@string/MainAfInfinityText"
android:onClick="onRadioButtonClicked"
android:button = "@drawable/radiobutton"
/>
- custom ur own radio button style
- 22.VC(custom)-radio button的用法
- Create custom checkbox style button for iPhone
- Building Up Ur Own Development Envir [PostgreSQL]
- radio button
- radio button
- Radio Button
- Radio Button
- Radio Button
- opengl custom own view transform
- 一只大二狗的Android历程--简单自定义按钮样式(Custom Button Style)
- Android custom button
- How to write your own custom Form
- Button Style and Input Style
- radio button 简易使用
- Radio Button的使用
- radio button 绑定数据
- RADIO BUTTON group
- 阿里架构之dubbo
- phpstorm安装
- 修改本机电脑MTU值,网速提高15%
- 正向代理与反向代理的区别
- 多线程中使用迭代器 访问 STL 容器元素的越界问题
- custom ur own radio button style
- 图形学优化_2: openthread
- SqlHelper
- mysql防止SQL 注入
- iOS中3DES加密算法的原理
- Python 元组、列表、字典、字符串的操作
- ubuntu15.10安装mysql数据库
- 导航栏返回按钮替换图片去掉文字
- java 发邮件demo