学习进度十二

今天对支出页面,和收入页面进行了设计,效果如下:

<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="match_parent"    android:layout_height="match_parent"    >    <EditText        android:layout_marginTop="5dp"        android:id="@+id/et_3"        android:layout_width="match_parent"        android:layout_height="70dp"        android:hint="请输入支出金额:0.00"        android:background="@drawable/edittext"        android:inputType="number"        />    <EditText        android:id="@+id/et_4"        android:layout_width="match_parent"        android:layout_height="70dp"        android:layout_below="@+id/et_3"        android:hint="请输入记账日期:2000-01-01"        android:background="@drawable/edittext"        android:layout_marginTop="5dp"

        />    <ImageView        android:id="@+id/iv_2"        android:layout_width="60dp"        android:layout_height="60dp"        android:layout_below="@id/et_4"        android:background="#FF00"        android:src="@drawable/canying"/>        android:scaleType="centerCrop"        android:layout_marginTop="20dp"/>    <CheckBox        android:id="@+id/cb_1"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:text="餐饮"       android:layout_below="@+id/iv_2"       android:layout_marginLeft="2dp"    />    <ImageView        android:id="@+id/iv_3"        android:layout_width="60dp"        android:layout_height="60dp"        android:background="#ff00"        android:layout_toRightOf="@id/iv_2"        android:layout_below="@id/et_4"        android:layout_marginTop="20sp"        android:src="@drawable/gouwu"        android:scaleType="centerCrop"        android:layout_marginLeft="20dp"/>    <CheckBox        android:id="@+id/cb_2"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:layout_below="@id/iv_3"        android:layout_marginLeft="80dp"        android:text="购物"/>    <ImageView        android:id="@+id/iv_4"        android:layout_width="60dp"        android:layout_height="60dp"        android:background="#ff00"        android:layout_below="@id/et_4"        android:layout_marginTop="20dp"        android:layout_marginLeft="160dp"        android:src="@drawable/yule"        android:scaleType="centerCrop"        />    <CheckBox        android:id="@+id/cb_3"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:text="娱乐"        android:layout_below="@id/iv_4"        android:layout_marginLeft="160dp"/>    <ImageView        android:id="@+id/iv_5"        android:layout_width="60dp"        android:layout_height="60dp"        android:background="#ff00"        android:layout_below="@+id/et_4"        android:layout_marginTop="20dp"        android:layout_marginLeft="240dp"        android:src="@drawable/jiaotong"/>    <CheckBox        android:id="@+id/cb_4"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:text="交通"        android:layout_below="@id/iv_2"        android:layout_marginLeft="240dp"        />    <ImageView        android:id="@+id/iv_6"        android:layout_width="60dp"        android:layout_height="60dp"        android:background="#ff00"        android:layout_below="@id/et_4"        android:layout_marginTop="20dp"        android:layout_marginLeft="320dp"        android:src="@drawable/juzhu"        android:scaleType="centerCrop"        />    <CheckBox        android:id="@+id/cb_5"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:text="居住"        android:layout_below="@id/iv_2"        android:layout_marginLeft="320dp"        />    <ImageView        android:id="@+id/iv_7"        android:layout_width="60dp"        android:layout_height="60dp"        android:background="#ff00"        android:layout_below="@id/cb_1"        android:layout_marginLeft="2dp"        android:layout_marginTop="10dp"        android:src="@drawable/yiliao"        />    <CheckBox        android:id="@+id/cb_6"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:layout_below="@+id/iv_7"        android:text="医疗"        />    <ImageView        android:id="@+id/iv_8"        android:layout_width="60dp"        android:layout_height="60dp"        android:background="#ff00"        android:layout_below="@id/cb_1"        android:layout_marginLeft="80dp"        android:layout_marginTop="10dp"        android:src="@drawable/renqing"        android:scaleType="centerCrop"        />    <CheckBox        android:id="@+id/cb_7"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:text="人情"        android:layout_below="@id/iv_7"        android:layout_marginLeft="80dp"        />    <ImageView        android:id="@+id/iv_9"        android:layout_width="60dp"        android:layout_height="60dp"        android:layout_below="@id/cb_5"        android:layout_marginTop="10dp"        android:layout_marginLeft="160dp"        android:src="@drawable/jiaoyu"        />    <CheckBox        android:id="@+id/cb_8"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:layout_below="@id/iv_7"        android:text="教育"        android:layout_marginLeft="160dp"/>    <ImageView        android:id="@+id/iv_10"        android:layout_width="60dp"        android:layout_height="60dp"        android:layout_below="@id/cb_5"        android:layout_marginTop="10dp"        android:layout_marginLeft="240dp"        android:src="@drawable/qitazhichu"        />

    <CheckBox        android:id="@+id/cb_9"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:layout_below="@id/iv_7"        android:text="其他"        android:layout_marginLeft="240dp"/>

    <EditText        android:layout_width="350dp"        android:layout_height="100dp"        android:layout_below="@id/cb_8"        android:layout_marginTop="15dp"        android:hint="备注"        android:background="@drawable/edittext"/>

</RelativeLayout>



原文地址:https://www.cnblogs.com/yangqqq/p/12305760.html

时间: 2024-08-30 18:07:52

学习进度十二的相关文章

寒假学习进度十二

摘要:实验二 Scala编程初级实践 一.实验目的 1.掌握 Scala 语言的基本语法.数据结构和控制结构: 2.掌握面向对象编程的基础知识,能够编写自定义类和特质: 3.掌握函数式编程的基础知识,能够熟练定义匿名函数.熟悉 Scala 的容器类库的基本 层次结构,熟练使用常用的容器类进行数据: 4.熟练掌握 Scala 的 REPL 运行模式和编译运行方法. 二.实验平台 已经配置完成的 Scala 开发环境.Scala 版本为 2.11.8. 三.实验内容和要求 1. 计算级数 请用脚本的

Swift学习笔记十二:下标脚本(subscript)

下标脚本就是对一个东西通过索引,快速取值的一种语法,例如数组的a[0].这就是一个下标脚本.通过索引0来快速取值.在Swift中,我们可以对类(Class).结构体(structure)和枚举(enumeration)中自己定义下标脚本的语法 一.常规定义 class Student{ var scores:Int[] = Array(count:5,repeatedValue:0) subscript(index:Int) -> Int{ get{ return scores[index];

#HTTP协议学习# (十二)理解转发与重定向

本文转自:http://blog.csdn.net/meiyalei/article/details/2129120  生动清晰 解释一 转发是服务器行为,重定向是客户端行为.为什么这样说呢,这就要看两个动作的工作流程: 转发过程:客户浏览器发送http请求---->web服务器接受此请求-->调用内部的一个方法在容器内部完成请求处理和转发动作---->将目标资源发送给客户:在这里,转发的路径必须是同一个web容器下的url,其不能转向到其他的web路径上去,中间传递的是自己的容器内的r

hbase 学习(十二)集群间备份原理

集群建备份,它是master/slaves结构式的备份,由master推送,这样更容易跟踪现在备份到哪里了,况且region server是都有自己的WAL 和HLog日志,它就像mysql的主从备份结构一样,只有一个日志来跟踪.一个master集群可以向多个slave集群推送,收到推送的集群会覆盖它本地的edits日志. 这个备份操作是异步的,这意味着,有时候他们的连接可能是断开的,master的变化不会马上反应到slave当中.备份个格式在设计上是和mysql的statement-based

虚拟机VMWare学习笔记十二 - 将物理机抓取成虚拟机

1. 安装VMware vCenter Converter Standalone Client 运行虚拟机,File -- Virtualize a Physical Machine 这时如果电脑中没有VMware vCenter Converter Standalone Client ,则会进行安装. 安装过程 之后图标会出现在桌面上,双击运行 选择连接到本地服务器,登陆 点击转换计算机 这个,可以将本地计算机抓取成虚拟机,也可以将其他可以访问的计算机(需知道管理员用户名及密码)抓取成虚拟机.

javascript基础学习(十二)

javascript之BOM 学习要点: 屏幕对象 History对象 Location对象 一.屏幕对象 Screen对象是一个由javascript自动创建的对象,该对象的主要作用是描述客户端的显示器的信息. 目前显示器分辨率为800X600或1024X768两种. screen.height:屏幕的高度 screen.width:屏幕的宽度 screen.availHeigh:屏幕的有效高度 screen.availWidth:屏幕的有效宽度 二.History对象 History对象可以

JavaScript学习总结(十二)——JavaScript编写类

在工作中经常用到JavaScript,今天总结一下JavaScript编写类的几种写法以及这几种写法的优缺点,关于JavaScript编写类的方式,在网上看到很多,而且每个人的写法都不太一样,经常看到的就是以下几种方式. 1.构造函数方式 用构造函数模拟"类",在其内部用this关键字指代实例对象. 基本语法: function 类名(){     this.属性名;//公共属性     var 属性名;//私有属性    /*凡是定义类的公共属性和公共方法都要使用this*/   

Mysql学习之十二:JDBC连接数据库之DriverManager方法

JDBC连接数据库 ?创建一个以JDBC连接数据库的程序,包含7个步骤: 1.加载JDBC驱动程序: 在连接数据库之前,首先要加载想要连接的数据库的驱动到JVM(Java虚拟机), 这通过java.lang.Class类的静态方法forName(String  className)实现. 例如: try{ //加载MySql的驱动类 Class.forName("com.mysql.jdbc.Driver") ; }catch(ClassNotFoundException e){ Sy

《Hibernate学习笔记十二》学生、课程、分数关系的设计与实现

<Hibernate学习笔记十二>学生.课程.分数关系的设计与实现 这个马士兵老师的Hibernate视频学习的一个题目,这里面要用到多对多.多对一的关联关系以及联合主键,因此觉得挺好的,自己写篇博文来记录下. 先考虑数据库表 1.学生表:为简单起见,只考虑了学生id和学生姓名,其中id为主键 2.课程表:为简单起见,只考虑了课程id和课程名称,其中id为主键 3.分数表 分数表有两种解决方案 3.1 第一种为:使用联合主键:student_id 和 course_id 3.2 第二种:不使用