摘要: 项目地址 https://gitee.com/heziyan_code/note-book 项目结构 Room数据库:AppDatabase/User/UserDao Main界面:将List中的内容显示出来 Edit界面:编辑内容 Room数据库 关于Room的基本用法请看官网介绍:https:/ 阅读全文
posted @ 2022-02-04 20:28 又一岁荣枯 阅读(589) 评论(0) 推荐(0)
摘要: onCreate(null);//调用该方法即可 阅读全文
posted @ 2022-02-04 19:36 又一岁荣枯 阅读(38) 评论(0) 推荐(0)
摘要: 普通对话框的创建 初始化方法 public Dialog onCreateDialog(User user) { // Use the Builder class for convenient dialog construction AlertDialog.Builder builder = new 阅读全文
posted @ 2022-02-04 19:31 又一岁荣枯 阅读(87) 评论(0) 推荐(0)
摘要: 什么是Adapter? Adapter 对象充当AdapterView视图和底层数据之间的桥梁。适配器提供对数据项的访问。Adapter 还负责为android.view.View数据集中的每个项目制作一个。 简单来说,Adapter提供了一个将其他View嵌套进RecycleView的方法,使每个 阅读全文
posted @ 2022-02-04 19:23 又一岁荣枯 阅读(1325) 评论(0) 推荐(0)
摘要: git add.//添加到暂存区 git commit -m "提交的信息" git push//提交到远程 阅读全文
posted @ 2022-02-04 11:29 又一岁荣枯 阅读(33) 评论(0) 推荐(0)