随笔分类 - 每日打卡
摘要:今天上了概率论必修课,几何概型因为比较简单所以跳过了,然后讲了事件的独立性、全概率公式和贝叶斯公式、乘法公式等,用于求取较复杂事件的概率更加方便了。
阅读全文
摘要:每日花费适配器: package com.hui.myapplication.adapter;import android.content.Context;import android.view.LayoutInflater;import android.view.View;import andro
阅读全文
摘要:记录页面适配器代码: package com.hui.myapplication.adapter;import androidx.annotation.NonNull;import androidx.annotation.Nullable;import androidx.fragment.app.F
阅读全文
摘要:数据库相关操作: package com.hui.myapplication.db;/** 负责管理数据库的类* 主要对于表当中的内容进行操作,增删改查* */import android.content.ContentValues;import android.content.Context;im
阅读全文
摘要:数据库数据存储管理: 连接数据库: package com.hui.myapplication.frag_record;import androidx.fragment.app.Fragment;import com.hui.myapplication.R;import com.hui.myappl
阅读全文
摘要:支出/收入程序代码: 父类: package com.hui.myapplication.frag_record;import android.inputmethodservice.KeyboardView;import android.os.Bundle;import androidx.annot
阅读全文
摘要:表示收入或者支出具体类型的类: package com.hui.myapplication.db;/** 表示收入或者支出具体类型的类* */public class TypeBean { int id; String typename; //类型名称 int imageId; //未被选中图片id
阅读全文
摘要:程序代码(变量): package com.hui.myapplication.db;/*描述记录一条数据的相关内容类*/public class AccountBean { int id; String typename; //类型 int sImageId; //被选中类型图片 String b
阅读全文
摘要:一些页面中用到的id和颜色、背景等: 颜色: <?xml version="1.0" encoding="utf-8"?><resources> <color name="black">#FF000000</color> <color name="white">#FFFFFFFF</color> <
阅读全文
摘要:各小图标的绘制: <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"
阅读全文
摘要:主页列表显示记账记录和顶部图表等页面绘制: 记账列表记录: <?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android
阅读全文
摘要:记录支出类型页面的绘制: <?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://sche
阅读全文
摘要:预算设置对话框的绘制: <?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="mat
阅读全文
摘要:备注和时间记录页面对话框的绘制: 备注: <?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="htt
阅读全文
摘要:记账页面的绘制: <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.andr
阅读全文
摘要:主界面的绘制: <?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.and
阅读全文
摘要:首先Android程序记账本软件的大致结构要简单讲一下, 记账本组成:记账,账目类型,钱数,备注,时间,主界面,删除历史账目,按年份(月份/日期)搜索查看支出,预算设置,图表类型分析。 页面的绘制、按钮点击等也需要适配器adapter需要编写,明天开始先绘制一下主要的一些页面布局
阅读全文