
android平⾯图app_AndroidStudio⼀个完整的APP实例(附源
码和数据库)
前⾔:
这是我独⽴做的第⼀个APP,是⼀个记账本APP。
This is the first APP, I've ever done on my own. It's a accountbook APP.
源码:
欢迎satr or fork
备注:
APP中所涉及到的图标请勿商⽤
效果图
(备注:在把图⽚制作成gif时,图⽚的质量受损,所以最终呈现出来的gif图⽚,背景变得有些模糊)
开发环境
IDE:Android Studio
Database:SQLite
功能介绍
该APP共包含6个功能,分别是:
1、登录&注册功能:
进⼊该界⾯,默认是让⽤户进⾏登录操作;
若⽤户之前没有注册过,则会提⽰让⽤户进⾏注册;
若⽤户忘记登录密码,也有重置密码的功能。
2、收⼊&⽀出功能:
该功能分为两个页签:明细、类别报表
这两个页签内容,都根据⽉份来统计呈现(开发中,⽬前是呈现所有收⽀明细)
并根据⽉份,显⽰当⽉的收⼊与⽀出(开发中,⽬前是呈现固定值)
明细页签:
在该页签最下⽅会显⽰【记⼀笔】按钮,点击该按钮,会提⽰让⽤户选择记录的类型,是收⼊ or ⽀出
然后会进⼊到记录收⽀明细的界⾯
根据⽤户的选择类型,来呈现不同的内容
当⽤户录⼊好收⽀明细,点击保存,会返回到明细页签,此时会刷新明细页签的内容(刷新功能开发中)
类别报表页签:
该页签会根据⽤户的收⽀明细的类别来进⾏统计,呈现⽅式是圆形饼图(具体的统计逻辑开发中)
3、统计功能:
该功能分为两个页签:明细、类别报表(该功能和收⼊&⽀出功能类似)
这两个页签内容,都根据⽉份来统计呈现(开发中,⽬前是呈现所有收⽀明细)
并根据⽉份,显⽰当⽉的结余,以及相⽐上⽉⽀出(开发中,⽬前是呈现固定值)
4、特殊设置功能:该功能正在设计中。
5、⼼愿墙功能:该功能正在设计中。
6、关于我们功能:该功能主要是对APP进⾏简要介绍。
数据库设计:
⽬前APP共涉及到三个表,分别是:⽤户信息表、配置表、收⽀明细表
1 public voidonCreate(SQLiteDatabase db){
2 //user table
SQL("create table if not exists user_tb(_id integer primary key autoincrement," +
4 "userID text not null," +
5 "pwd text not null)");6
7 //Configuration table
SQL("create table if not exists refCode_tb(_id integer primary key autoincrement," +
9 "CodeType text not null," +
10 "CodeID text not null," +
11 "CodeName text null)");12
13 //costDetail_tb
SQL("create table if not exists basicCode_tb(_id integer primary key autoincrement," +
15 "userID text not null," +
16 "Type integer not null," +
17 "incomeWay text not null," +
18 "incomeBy text not null," +
19 "category text not null," +
20 "item text not null," +
21 "cost money not null," +
22 "note text not null," +
23 "makeDate text not null)");24 }
教程
以下博⽂是根据APP中涉及到的功能进⾏整理的,如下:
参考:
⾸页的旋转菜单参考该博⽂:参考
版本:
⽬前的版本为V1.0
APP还有很多功能需要继续完善,希望有兴趣的⼩伙伴可以⼀起参与进来,和我⼀起来开发完善。
⼀点想说的话
不论遇到什么困难,都不应该成为我们放弃的理由
更多推荐
功能,呈现,开发,统计,完善,密码
发布评论