android软件简约记账app开发day02-收入支出明细页面绘制

效果图

列表界面绘制

新建layout文件-item_mainlv.xml大体使用绝对布局,嵌套相对布局,嵌套文本内容实现

<?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="wrap_content"
   android:layout_margin="10dp"
   android:padding="10dp"
   android:background="@color/white">
   <ImageView
       android:id="@+id/item_mainlv_iv"
       android:layout_width="45dp"
       android:layout_height="45dp"
       android:src="@mipmap/ic_yanjiu_fs"/>
<LinearLayout
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:layout_toRightOf="@+id/item_mainlv_iv"
   android:layout_marginLeft="10dp"
   android:orientation="vertical">
   <TextView
       android:id="@+id/item_mainlv_tv_title"
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:text="烟酒茶"
       android:textStyle="bold"
       android:textSize="16sp"/>
   <TextView
       android:id="@+id/item_mainlv_tv_beizhu"
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:text="华子一条"
       android:textStyle="bold"
       android:textSize="12sp"
       android:layout_marginTop="5dp"/>
</LinearLayout>


   <LinearLayout
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:layout_alignParentRight="true"
       android:orientation="vertical">
       <TextView
           android:id="@+id/item_mainlv_tv_money"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:text="¥25.0"
           android:textStyle="bold" />
       <TextView
           android:id="@+id/item_mainlv_tv_time"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:text="今天 18:10"
           android:layout_marginTop="5dp"/>
   </LinearLayout>
</RelativeLayout>

新建item_mainlv_top.xml文件绘制顶部界面

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:orientation="vertical"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   android:background="@color/gray_f3f3f3">
   <RelativeLayout
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:background="@color/white"
       android:padding="20dp">
       <TextView
           android:id="@+id/item_mainlv_top_tvl"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:text="本月"/>
       <TextView
           android:id="@+id/item_mainlv_top_tv_out"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:text="¥ 0"
           android:layout_below="@+id/item_mainlv_top_tvl"
           android:textSize="26sp"
           android:textStyle="bold"
           android:layout_marginTop="10dp"
           android:layout_marginBottom="10dp"
           android:textColor="@color/black"/>

       <ImageView
           android:id="@+id/item_mainlv_top_iv_hide"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:layout_alignTop="@+id/item_mainlv_top_tv_out"
           android:layout_alignParentRight="true"
           android:src="@mipmap/ih_show" />
       <TextView
           android:id="@+id/item_mainlv_top_tv2"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:text="@string/month_in"
           android:layout_below="@id/item_mainlv_top_tv_out"/>
       <TextView
           android:id="@+id/item_mainlv_top_tv_in"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:textColor="@color/black"
           android:text="¥ 0"
           android:layout_below="@id/item_mainlv_top_tv_out"
           android:layout_toRightOf="@+id/item_mainlv_top_tv2"
           android:layout_marginLeft="5dp"/>
       <TextView
           android:id="@+id/item_mainlv_top_tv_budget"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:text="¥ 0"
           android:textColor="@color/black"
           android:layout_alignParentRight="true"
           android:layout_alignBottom="@+id/item_mainlv_top_tv2"
           android:layout_marginLeft="5dp"/>
       <TextView
           android:id="@+id/item_mainlv_top_tv3"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:text="@string/budget"
           android:layout_toLeftOf="@+id/item_mainlv_top_tv_budget"
           android:layout_alignBottom="@id/item_mainlv_top_tv2"/>
       <TextView
           android:id="@+id/item_mainlv_top_tv4"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:drawableLeft="@mipmap/ih_biaoge"
           android:layout_below="@id/item_mainlv_top_tv2"
           android:layout_centerHorizontal="true"
           android:layout_marginTop="20dp"
           android:text="@string/seeExcel"
           android:textColor="@color/green_006400"
           android:drawablePadding="10dp"/>
   </RelativeLayout>
   <TextView
       android:id="@+id/item_mainlv_top_tv_day"
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:text="今日支出 ¥0 收入¥0"
       android:textStyle="bold"
       android:layout_marginTop="20dp"
       android:layout_marginBottom="10dp"/>

</LinearLayout>

android软件简约记账app开发day02-收入支出明细页面绘制的更多相关文章

  1. android软件简约记账app开发day01-今日收支明细的界面绘制

    android软件简约记账app开发day01-今日收支明细的界面绘制 导入素材 导入在阿里iconfront图标库下载的字体图标分为大小两种,分别导入到项目目录mipmap-hdpi和mipmap- ...

  2. android软件简约记账app开发day10-主页面模块--头信息的展示,和之后功能完善的目标。

    android软件简约记账app开发day10-主页面模块--头信息的展示,和之后功能完善的目标. 今天来写主界面头信息的展示,也就是将第一天的写的layout中的item_main_top展示到主界 ...

  3. android软件简约记账app开发day09-主页面模块,收支记账信息的展示

    android软件简约记账app开发day09-主页面模块,收支记账信息的展示 我们第一天已经绘制了记账条目的界面,也在主界面设置了LietView来展示记账条目,今天来实现记账后再主界面的展示效果 ...

  4. android软件简约记账app开发day06-将记账条目添加到数据库并且绘制备注页面

    android软件简约记账app开发day06-将记账条目添加到数据库并且绘制备注页面 首先写添加到数据库 在DBOpenHelper中添加创建记账表的语句 //创建记账表 sql = "c ...

  5. android软件简约记账app开发day05-记账页面条目代码优化和bug解决

    android软件简约记账app开发day05-记账页面条目代码优化和bug解决 今天还是因为该bug又极大的耽误了项目进程,该开发文档都要没有时间来写了. 先说bug吧,在昨天已经实现了页面图标的展 ...

  6. android软件简约记账app开发day04-记账页面条目的代码书写

    android软件简约记账app开发day04-记账页面条目的代码书写 在前三天我们完成了基本的界面展示,从今天开始,我们进入到后台逻辑代码的编写中,今天开发记账条目的代码 我们在主页面点击记一笔图标 ...

  7. android软件简约记账app开发day08-时间对话框的书写+改bug,改bug

    android软件简约记账app开发day08-时间对话框的书写+改bug,改bug 绘制对话跨页面 在添加记账信息功能中,我提供了用户添加备注添加事件的功能,设计是点击时间会弹出一个时间对话框供用户 ...

  8. android软件简约记账app开发day07-备注界面完善

    android软件简约记账app开发day07-备注界面完善 ## 昨天我们已经绘制了备注页面,今天来用Java代码组装完善一下. 首先我们新建BeiZhuDialog类关联备注页面,并且实现点击接口 ...

  9. android软件简约记账app开发day03-自定义键盘的书写

    android软件简约记账app开发day03-自定义键盘的书写 我们在fragment界面使用了自定义的keybroad键盘,所以今天我们来书写自定义的键盘代码 新建util包,新建keyboard ...

随机推荐

  1. SQL存储过程的学习01

    虽工作多年,但是sql的存储过程一致都没怎么用过,今天来按照博客https://www.cnblogs.com/applelife/p/11016674.html来学习一下(我使用postgre sq ...

  2. C# 委托应用总结(委托,Delegate,Action,Func,predicate)

    C# 委托应用总结 一.什么是委托 1.1官方解释 委托是一种定义方法签名的类型.当实例化委托时,您可以将其实例与任何具有兼容签名的方法相关联.您可以通过委托实例调用方法. 1.2个人理解 委托就是执 ...

  3. Flink不止于计算,存算一体才是未来

    ​ "伴随着实时化浪潮的发展和深化,Flink 已逐步演进为实时流处理的领军技术和事实标准.Flink 一方面持续优化其流计算核心能力,不断提高整个行业的流计算处理标准,另一方面沿着流批一体 ...

  4. SP接口的全双工首发接口整合

    unsigned char bits = 8; unsigned int speed = 50000; unsigned short delay; static void spi_transfer_d ...

  5. STM32 之 HAL库(固件库) _

    1 STM32的三种开发方式 通常新手在入门STM32的时候,首先都要先选择一种要用的开发方式,不同的开发方式会导致你编程的架构是完全不一样的.一般大多数都会选用标准库和HAL库,而极少部分人会通过直 ...

  6. 5. Git初始化及仓库创建和操作

    4. Git初始化及仓库创建和操作 基本信息设置 1. 设置用户名 git config --global user.name 'itcastphpgit1' 2. 设置用户名邮箱 git confi ...

  7. 解决联想笔记本 安装VM虚拟机后每次启动都会导致电脑蓝屏问题

    现象描述: pc为联想笔记本 系统是微软家庭中文版,每次启动VM虚拟机都会出现蓝屏现象,出现错误代码system_service_exception 原因及解决方法: 对于Windows10家庭版  ...

  8. Pandas怎样新增数据列

    Pandas怎样新增数据列? 在进行数据分析时,经常需要按照一定条件创建新的数据列,然后进行进一步分析. 直接赋值 df.apply方法 df.assign方法 按条件选择分组分别赋值 0.读取csv ...

  9. anijs 一个小巧的动画库

    很多时候我意识到前端已近变成写h5宣传页面 我不知道是可悲 还是生活的必然 小问题 使用css animation和js animation api制作动画是目前比较流行的做法 但是最后很多人的代码就 ...

  10. HTML5相关文章和资源

    Polyfills HTML5 Cross Browser Polyfills canvas HTML5 JS实现毛玻璃效果(高斯模糊) 高斯模糊的算法Canvas 内部元素添加事件处理 应用场景 P ...