<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. C#中的ODBC、OLEDB连接

      using System;using System.Collections.Generic;using System.Text;using System.Data.Odbc;using Syste ...

  2. Using innodb_large_prefix to avoid ERROR #1071,Specified key was too long; max key length is 1000 bytes

    Using innodb_large_prefix to avoid ERROR 1071        单列索引限制上面有提到单列索引限制767,起因是256×3-1.这个3是字符最大占用空间(ut ...

  3. GridView導出Excel 解決亂碼問題

    Response.Clear(); Response.Charset = "gb2312"; Response.Buffer = true; Response.AddHeader( ...

  4. TFS源代码管理

    一.服务器配置 1.创建一个Visual Studio Online账户 打开VS,选择团队资源管理器(视图菜单下),然后在团队资源管理器中选择注册Team Foundation Service,打开 ...

  5. visual studio 2012更换皮肤、功能添加

    首先在vs2012的菜单:工具->扩展和更新,打开扩展和更新窗口,点击左侧“联机”,搜索栏里面输入Theme Editor.然后点击按钮,安装之后,在工具->选项->环境常规 面板上 ...

  6. 小图用 imageNamed: 大图用 dataWithContentsOfFile:options

    1down voteaccepted If you're loading images like:[UIImage imageNamed:@"myImage.png"];Then ...

  7. asp.net 使用 MongoDB 初体验

    首先:驱动 如果asp.net 想使用MongoDB,.net没有自带的链接类.得用第三方或官方的链接类. 当然有很多种驱动,我就不一一介绍了. 今天我就介绍一个我比较常用的驱动-----MongoD ...

  8. oracle的exp、imp命令

    1.EXP a>完全模式 full=y EXP USER/PASSWORD@DB (AS ROLE) BUFFER=64000 FILE=C:\FULL.DMP FULL=Y b>用户模式 ...

  9. 【Android】Android部分问题记录

    1.EditText不显示光标 开发的时候遇到有部分手机,小米系列以及华为部分手机不显示光标. 设置EditText属性 android:textCursorDrawable="@null& ...

  10. 【HTML】Intermediate1:Span&Div

    1.HTML is all bout applying meaning to content. The span & div tags apply no meaning at all=mean ...