效果:

布局代码:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".GoodsInfo">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_margin="30dp"
android:background=" #B0C4DE">
<TextView
android:id="@+id/text1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_marginLeft="50dp"
android:layout_marginTop="30dp"
android:text="订单号:201508260528"
android:textColor="@android:color/holo_red_light"/>
<TextView
android:id="@+id/text2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/text1"
android:layout_below="@id/text1"
android:layout_marginTop="8dip"
android:text="收货人:杨明金"
android:textColor="@android:color/holo_red_light"/>
<TextView
android:id="@+id/text3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/text1"
android:layout_below="@id/text2"
android:layout_marginTop="8dip"
android:textColor="@android:color/holo_red_light"
android:text="联系电话:182142XXXX"/>
<TextView
android:id="@+id/text4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/text1"
android:layout_below="@id/text3"
android:layout_marginTop="8dip"
android:textColor="@android:color/holo_red_light"
android:text="收货地址:云南省昆明市五华区128号"/>
<TextView
android:id="@+id/text5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/text1"
android:layout_below="@id/text4"
android:layout_marginTop="8dip"
android:textColor="@android:color/holo_red_light"
android:text="总金额:114"/> <TableLayout
android:id="@+id/tableLayout1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/text1"
android:layout_below="@id/text5"
android:layout_centerVertical="true"
android:layout_marginTop="5dp"
android:layout_marginRight="8dip"
android:background="#ffcccccc"> <TableRow
android:id="@+id/tableRow1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#ffffcc99"
android:layout_margin="1dip"> <TextView
android:layout_width="0.0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="商品名称"
android:textColor="@android:color/holo_red_light" />
<TextView
android:layout_width="0.0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="商品数量"
android:textColor="@android:color/holo_red_light" />
<TextView
android:layout_width="0.0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="单价"
android:textColor="@android:color/holo_red_light" />
<TextView
android:layout_width="0.0dp"
android:layout_height="wrap_content"
android:layout_weight="5"
android:text=""
android:textColor="@android:color/holo_red_light" />
</TableRow>
<TableRow
android:id="@+id/tableRow2"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:layout_width="0.0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="伊利轻牛奶"
android:textColor="@android:color/white"/>
<TextView
android:layout_width="0.0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="50"
android:textColor="@android:color/white"/>
<TextView
android:layout_width="0.0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="2"
android:textColor="@android:color/white"/>
<TextView
android:layout_width="0.0dp"
android:layout_height="wrap_content"
android:layout_weight="5"
android:text="伊利轻牛奶"
android:textColor="@android:color/white"/>
</TableRow>
</TableLayout>
</RelativeLayout>
<Spinner
android:id="@+id/spinner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tableLayout1"
android:layout_marginTop="10dp"
android:layout_alignRight="@id/tableLayout1"/>
<Button
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_alignRight="@id/tableLayout1"
android:layout_below="@id/spinner"
android:layout_marginTop="10dp"/>
</LinearLayout>

Android物联网应用程序开发(智慧城市)—— 购物信息的存储界面开发的更多相关文章

  1. 【可视化大屏教程】用Python开发智慧城市数据分析大屏!

    目录 一.开发背景 二.讲解代码 2.1 大标题+背景图 2.2 各区县交通事故统计图-系列柱形图 2.3 图书馆建设率-水球图 2.4 当年城市空气质量aqi指数-面积图 2.5 近7年人均生产总值 ...

  2. Android物联网应用程序开发(智慧城市)—— 查询购物信息界面开发

    效果: 布局代码: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xm ...

  3. Android物联网应用程序开发(智慧城市)—— 用户注册界面开发

    效果: 布局代码: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns: ...

  4. Android物联网应用程序开发(智慧城市)—— 摄像头监控界面开发

    效果: 布局代码: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns: ...

  5. Android物联网应用程序开发(智慧城市)—— 火焰监控界面开发

    效果: 布局代码: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns: ...

  6. Android物联网应用程序开发(智慧城市)—— 环境状态值范围设置界面开发

    效果图: 代码: 布局: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns ...

  7. Android物联网应用程序开发(智慧园区)—— 图片预览界面

    效果图: 实现步骤: 1.首先在 build.gradle 文件中引入 RecycleView implementation 'com.android.support:recyclerview-v7: ...

  8. Android物联网应用程序开发(智慧园区)—— 设置传感器阈值对话框界面

    效果图: 自定义对话框布局: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xml ...

  9. Android物联网应用程序开发(智慧园区)—— 园区监控系统界面

    效果图: 布局代码: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:a ...

随机推荐

  1. spring定时任务执行两次

    最近用Spring的quartz定时器的时候,发现到时间后,任务总是重复执行两次,在tomcat或jboss下都如此. 打印出他们的hashcode,发现是不一样的,也就是说,在web容器启动的时候, ...

  2. 3.6 String 与 切片&str的区别

    The rust String  is a growable, mutable, owned, UTF-8 encoded string type. &str ,切片,是按UTF-8编码对St ...

  3. PhoneGap打包webApp

    因为我只弄了Andriod的环境,所以在此只以Andriod为例. 使用PhoneGap搭建Android开发的项目整体步骤如下: 安装java环境. 安装ant构建工具. 安装android的开发环 ...

  4. 3.3 rust HashMap

    The type HashMap<K, V> stores a mapping of keys of type K to values of type V. It does this vi ...

  5. SQL优化原理

    SQL优化过程: 1,捕获高负荷的SQL语句-->2得到SQL语句的执行计划和统计信息--->3分析SQL语句的执行计划和统计信息--->4采取措施,对SQL语句进行调整.1找出高负 ...

  6. dom4j解析XML学习

    原理:把dom与SAX进行了封装 优点:JDOM的一个智能分支.扩充了其灵活性增加了一些额外的功能. package com.dom4j.xml; import java.io.FileNotFoun ...

  7. notepad++ 连接远程服务器

    前言:为了便于编辑 linux 上的文件,因此通过 notepad++ 连接服务器后打开,编辑完,保存即可 1. 打开 notepad++,安装插件 2. 搜索 NppFtp,找到后 点击 安装/in ...

  8. zookeeper 异常 :stat is not executed because it is not in the whitelist. Connection closed b

    1 .问题 1.启动 zookeeper 后 用指令:  telnet 127.0.0.1 2181 连接 提示输入指令 :stat 后报错,然后关闭连接 2.问题解决: 修改启动指令 zkServe ...

  9. Taro 微信小程序 上传文件到minio

    小程序前端上传文件不建议直接引用minio的js npm包,一来是这个包本身较大,会影响小程序的体积,二来是ak sk需要放到前端存储,不够安全,因此建议通过请求后端拿到签名数据后上传. 由于小程序的 ...

  10. Gitlab更改项目间的fork提交关系

    目录 一.前情提要 二.实际操作 一.前情提要 1.dzsw/cgd_xx项目,通过fork按钮在dzsw_dev组下面同步了一个项目 2.但是现在dzsw/cgd_xx项目因为没法提交合并请求,一点 ...