SQLite数据库的CURD操作,结果使用ListView展示

《第一行代码》6.4节,主要练习的是数据库的增删改查操作,结果通过之前的 ListView 控件展示,GIT 版本后,再打算用 RecycleView 实现一遍,算是温习。

    

遇到的问题

1.活动之间传递 List<Book> 数据时报错问题,需要序列化

Parcel: unable to marshal value com.example.databasetest

解决方法见 https://blog.csdn.net/guange99/article/details/40537799

2.TextView.setText() 设置显示数据问题

Resources$NotFoundException: String resource ID

解决方法见 https://blog.csdn.net/qq_37077360/article/details/86509131

还有一篇讲解的比较深,但我目前看不懂

https://blog.csdn.net/u014133119/article/details/80989479

猜你喜欢

转载自www.cnblogs.com/5igis/p/5igis_12549-1.html
今日推荐