android按钮main.xm_基础篇
16lz
2021-01-23
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>
更多相关文章
- 猎头职位【互联网热招岗位整理—Android】北京/上海/广州/苏州
- android 简历 android 3年 上海.doc
- 体育迷的工作:安卓开发,上海,国内排名第一体育平台
- 广州沙龙和微信、酷狗 欢聚时代的 Android 开发工程师一起交流分
- 比如说我们要从用户表customer和用户订单表orders中,查询上海的用
- 【早读汇】上海@jean-lee《ES6标准入门》笔记
- 【早读汇】广州@mogeWCY的《实战ES2015》笔记
- 【早读汇】上海@瑞心扉雪《CSS揭秘》笔记
- 【招聘】上海携程招csser