RadioButton自定义样式
2016-05-12 16:41
519 查看
layout
styles.xml
drawable
<RadioButton android:id="@+id/adr_add_female" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/female" style="@style/CustomRadioButtonTheme"/>
styles.xml
<style name="CustomRadioButtonTheme" parent="@android:style/Widget.CompoundButton.RadioButton"> <item name="android:button">@drawable/adr_rb</item> </style>
drawable
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@mipmap/point_circle" android:state_checked="true" /> <item android:drawable="@mipmap/not_point_circle" android:state_checked="false" /> <item android:drawable="@mipmap/not_point_circle" /> </selector>
相关文章推荐
- 自定义 css checkbox 样式
- 自定义 css checkbox 样式
- CSS小姿势
- CSS
- 菜鸟成长记-MJRefresh自定义刷新样式
- CSS学习之选择器 - CSS: The Missing Manual
- CSS3: animation实现简易幻灯片(轮播)
- CSS3: animation实现简易幻灯片(轮播)
- css的边框属性
- CSS3-字体样式
- 个人CSS问题的记录
- css3之3d导航
- input样式为横线
- 几个CSS3的flex弹性盒模型布局的简单例子演示
- CSS3中的transform属性进行2D和3D变换的基本用法
- 自定义浏览器滚动条的样式,打造属于你的滚动条风格——兼容IE和webkit(ff不支持)
- getStyle(obj, attr)兼容获取css
- 实现将一个List转化为Map的样式
- 实现将一个List转化为Map<Key,List>的样式
- 一些简单而又不失个性的css3片段(持续更新)