SMART单选按钮

让我们看一下,达到以上的效果,我们只要在MAIN。XML文件写几行代码便可。

<RadioGroup

android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="广州"
/>

<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="北京"
/>

<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="上海"
android:drawableLeft="@drawable/star"
android:drawableTop="@drawable/circle"
android:drawableRight="@drawable/star"
android:drawablePadding="20dp"
android:drawableBottom="@drawable/circle"
/>
</RadioGroup>

更多相关文章

  1. 猎头职位【互联网热招岗位整理—Android】北京/上海/广州/苏州
  2. android 简历 android 3年 上海.doc
  3. 体育迷的工作:安卓开发,上海,国内排名第一体育平台
  4. 广州沙龙和微信、酷狗 欢聚时代的 Android 开发工程师一起交流分
  5. 比如说我们要从用户表customer和用户订单表orders中,查询上海的用
  6. 【早读汇】上海@jean-lee《ES6标准入门》笔记
  7. 【早读汇】广州@mogeWCY的《实战ES2015》笔记
  8. 【早读汇】上海@瑞心扉雪《CSS揭秘》笔记
  9. 【招聘】上海携程招csser

随机推荐

  1. rpm包管理 yum包管理与编译安装
  2. Spark源码系列之Standalone模式下Spark应
  3. 大数据基础系列之kafka011生产者缓存超时
  4. 大数据基础系列之kafka知识点和优点
  5. 大数据基础系列之提交spark应用及依赖管
  6. 操作系统底层技术——CPU亲和性
  7. HDFS学习:HDFS机架感知与副本放置策略
  8. SQL on Hadoop 技术分析(二)
  9. Yarn【label-based scheduling】实战总结
  10. Yarn【label-based scheduling】实战总结