<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.homework05.MainActivity" > <RelativeLayout
android:layout_width="fill_parent"
android:layout_height="50dp">
<!-- 城市 -->
<!-- drawableLeft:在文字左边设置图标 -->
<TextView
android:id="@+id/city"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:drawableLeft="@drawable/city"
android:text="北京"
android:gravity="center"/>
<!-- 扫一扫 -->
<!-- android:adjustViewBounds="true" 是否调整自己的边界来保 持所显示图片的长宽比-->
<ImageView
android:id="@+id/image_scan"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:src="@drawable/codescan"
android:layout_alignParentRight="true"
android:adjustViewBounds="true"/>
<!-- 搜索编辑框 -->
<EditText
android:id="@+id/edit"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:hint="请输入。。。"
android:layout_toRightOf="@id/city"
android:layout_toLeftOf="@id/image_scan"/>
<!-- 搜索图标-->
<ImageView
android:id="@+id/image_search"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:src="@drawable/home_search_icon"
android:layout_alignRight="@id/edit"
android:layout_centerVertical="true"/>
</RelativeLayout>
<!-- 右下角的购物车 -->
<ImageView
android:id="@+id/image_buy"
android:layout_width="80dp"
android:layout_height="80dp"
android:src="@drawable/buy"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"/>
<!-- 下面的标签选项 -->
<!-- android:button="@null"不显示单选按钮的圆圈 -->
<RadioGroup
android:id="@+id/group"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
android:layout_toLeftOf="@id/image_buy"
android:weightSum="4"
android:orientation="horizontal">
<RadioButton
android:id="@+id/btn_home"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="首页"
android:gravity="center"
android:button="@null"
android:checked="true"
android:drawableTop="@drawable/select_home"
/>
<RadioButton
android:id="@+id/btn_person"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="分类"
android:gravity="center"
android:button="@null"
android:drawableTop="@drawable/select_person"
/>
<RadioButton
android:id="@+id/btn_new"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:text="新品"
android:gravity="center"
android:button="@null"
android:drawableTop="@drawable/select_new"
/>
<RadioButton
android:id="@+id/btn_search"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:text="搜索"
android:gravity="center"
android:button="@null"
android:drawableTop="@drawable/select_search"
/>
</RadioGroup> </RelativeLayout>

radioButton的简单使用的更多相关文章

  1. viewpage+RadioButton+Fragment简单导航界面

    https://blog.csdn.net/qibanxuehua/article/details/47333879

  2. (转载)SPRINGMVC表单标签简介

    SpringMVC表单标签简介 在使用SpringMVC的时候我们可以使用Spring封装的一系列表单标签,这些标签都可以访问到ModelMap中的内容.下面将对这些标签一一介绍. 在正式介绍Spri ...

  3. SpringMVC表单标签简介

    在使用SpringMVC的时候我们可以使用Spring封装的一系列表单标签,这些标签都可以访问到ModelMap中的内容.下面将对这些标签一一介绍. 在正式介绍SpringMVC的表单标签之前,我们需 ...

  4. SpringMVC框架(三)from标签(转)

    原文地址:http://blog.csdn.net/kutim/article/details/46682547 spring表单标签   <%@taglib uri="http:// ...

  5. [Aaronyang] 写给自己的WPF4.5 笔记5[数据绑定三巴掌1/3]

    生活总有意外,微笑对待每一件事,无需抱怨--Aaronyang的博客(www.ayjs.net) 博文摘要:数据库下载 教你如何在vs2013中不安装Mssql数据库,使用了Sqlserver Com ...

  6. [转]SpringMVC<from:form>表单标签和<input>表单标签简介

    原文地址:https://blog.csdn.net/hp_yangpeng/article/details/51906654 在使用SpringMVC的时候我们可以使用Spring封装的一系列表单标 ...

  7. SpringMVC框架 之 from标签(转)

    原文地址:http://blog.csdn.net/kutim/article/details/46682547 spring表单标签   <%@taglib uri="http:// ...

  8. SpringMVC学习记录(五)--表单标签

    在使用SpringMVC的时候我们能够使用Spring封装的一系列表单标签,这些标签都能够訪问到ModelMap中的内容. 以下将对这些标签一一介绍. 1.引入标签头文件 在正式介绍SpringMVC ...

  9. Spring MVC框架及标签库

    1.Spring MVC技术 1. 当DispatcherServlet接到请求时,他先回查找适当的处理程序来处理请求.DispatcherServlet通过一个或者多个处理程序映射,将每个请求映射到 ...

随机推荐

  1. maven常用技巧

    安装Maven后我们会在用户目录下发现.m2 文件夹.默认情况下,该文件夹下放置了Maven本地仓库.m2/repository.所有的Maven构件(artifact)都被存储到该仓库中,以方便重用 ...

  2. C# GC.Collect()

    用C#写了一个运用ICE组件进行接口通信的服务程序,程序运行很正常,可是在客户端调用ICE接口时出现了大量的数据丢失,而且偶尔还通信不上,服务端最明显的现象就是telnet服务的通信端口时不通(cmd ...

  3. Java Socket 异常 Connection reset

    最近使用Java做Socket客户端,与C的Socket服务端交互.遇到问题:现象是可以从服务端接受小数据,但是如果接受大数据,总是遇到Connection reset的异常:如果把服务端和客户端放到 ...

  4. 关于this的小总结

    关于对this目前有几点小理解 ①this指向调用它的元素.就是谁调用它,它就指向谁. ②可以通过call()和apply()改变this的指向 ③setInterval和setTimeout中的th ...

  5. jquery,javascript常用

    1.jquery ajax应用 ajax方式 $.ajax({ url: 'stat.php', type: 'POST', data:{Name:"keyun"}, dataTy ...

  6. 五指CMS开发日志(一)

    开发了这么长时间,基本功能已经具备了.分享一下后台的界面吧.

  7. NOIP2003 侦探推理

    题二    侦探推理 [问题描述] 明明同学最近迷上了侦探漫画<柯南>并沉醉于推理游戏之中,于是他召集了一群同学玩推理游戏.游戏的内容是这样的,明明的同学们先商量好由其中的一个人充当罪犯( ...

  8. vijosP1319 数列

    vijosP1319 数列 链接:https://vijos.org/p/1319 [思路] 数学. 相当于交换进制2为k. [代码] #include<iostream> using n ...

  9. WordPress模版结构

    一套完整的WordPress模版应至少包括如下文件: style.css : 样式表文件 index.php : 首页模板 archive.php : 文章归档/分类目录模板 404.php : 40 ...

  10. (原)Struts 相关资源下载

    官网:http://struts.apache.org 点击[Download],进入页面如下,可以看到下载的资源: 点击[struts-2.3.20-all.zip],就能获取Struts2项目所有 ...