Android物联网应用程序开发(智慧城市)—— 购物信息的存储界面开发
效果:
布局代码:
<?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物联网应用程序开发(智慧城市)—— 购物信息的存储界面开发的更多相关文章
- 【可视化大屏教程】用Python开发智慧城市数据分析大屏!
目录 一.开发背景 二.讲解代码 2.1 大标题+背景图 2.2 各区县交通事故统计图-系列柱形图 2.3 图书馆建设率-水球图 2.4 当年城市空气质量aqi指数-面积图 2.5 近7年人均生产总值 ...
- Android物联网应用程序开发(智慧城市)—— 查询购物信息界面开发
效果: 布局代码: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xm ...
- Android物联网应用程序开发(智慧城市)—— 用户注册界面开发
效果: 布局代码: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns: ...
- Android物联网应用程序开发(智慧城市)—— 摄像头监控界面开发
效果: 布局代码: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns: ...
- Android物联网应用程序开发(智慧城市)—— 火焰监控界面开发
效果: 布局代码: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns: ...
- Android物联网应用程序开发(智慧城市)—— 环境状态值范围设置界面开发
效果图: 代码: 布局: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns ...
- Android物联网应用程序开发(智慧园区)—— 图片预览界面
效果图: 实现步骤: 1.首先在 build.gradle 文件中引入 RecycleView implementation 'com.android.support:recyclerview-v7: ...
- Android物联网应用程序开发(智慧园区)—— 设置传感器阈值对话框界面
效果图: 自定义对话框布局: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xml ...
- Android物联网应用程序开发(智慧园区)—— 园区监控系统界面
效果图: 布局代码: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:a ...
随机推荐
- c#中实现串口通信的几种方法
c#中实现串口通信的几种方法 通常,在C#中实现串口通信,我们有四种方法: 第一:通过MSCOMM控件这是最简单的,最方便的方法.可功能上很难做到控制自如,同时这个控件并不是系统本身所带,所以还得注册 ...
- C语言把数字转换为字符串的函数
博主原文 C语言itoa()函数和atoi()函数详解(整数转字符C实现) C语言提供了几个标准库函数,可以将任意类型(整型.长整型.浮点型等)的数字转换为字符串. 1.int/float to st ...
- springmvc框架找那个@responseBody注解
<%@ page contentType="text/html;charset=UTF-8" language="java" %><html& ...
- 莫烦python教程学习笔记——总结篇
一.机器学习算法分类: 监督学习:提供数据和数据分类标签.--分类.回归 非监督学习:只提供数据,不提供标签. 半监督学习 强化学习:尝试各种手段,自己去适应环境和规则.总结经验利用反馈,不断提高算法 ...
- QPS和TPS的区别于理解
TPS: (每秒事务处理量(TransactionPerSecond)) 一个表达系统处理能力的性能指标,每秒处理的消息数(Transaction Per Second),每秒事务处理量 - 性能测试 ...
- [BUUCTF]REVERSE——[BJDCTF2020]BJD hamburger competition
[BJDCTF2020]BJD hamburger competition 附件 步骤: 例行检查,64位程序,无壳儿 由于unity是用C++开发的,这里就不用IDA了,直接用dnspy看源码 在B ...
- Element-UI 使用 class 方式和 css 方式引入图标
今天在使用 vxe-table 时,需要引入 Element UI的图标,顺便就找了下这些组件库中图标的引用方式. 我们知道 Element .Ant Design.Font Awesome 等很多组 ...
- 基于MCRA-OMLSA的语音降噪(一):原理
前面的几篇文章讲了webRTC中的语音降噪.最近又用到了基于MCRA-OMLSA的语音降噪,就学习了原理并且软件实现了它.MCRA主要用于噪声估计,OMLSA是基于估计出来的噪声去做降噪.类比于web ...
- freeswitch APR-UTIL库消息队列实现
概述 freeswitch的核心源代码是基于apr库开发的,在不同的系统上有很好的移植性. APR库在之前的文章中已经介绍过了,APR-UTIL库是和APR并列的工具库,它们都是由APACHE开源出来 ...
- CF1104A Splitting into digits 题解
Content 给定一个数字 \(n\),试将这个数分成若干个数,使得这些数都相等,输出任意一个方案均可. 数据范围:\(1\leqslant n\leqslant 1000\). Solution ...