一款干净美观的本地电子书阅读器,为了世界和平,决定将代码开源,稍加处理,便可实现各类梦幻功能。git
#源码中有三本电子书,可复制进手机进行测试github
apk下载连接 https://www.coolapk.com/apk/174412数据库
github: https://github.com/supertaohaili/bookapp
allprojects { repositories { ... maven { url 'https://jitpack.io' } } } dependencies { compile 'com.github.supertaohaili:book:1.0.0' }
示例代码:框架
一、获取所有图书: List<BookList> all = DataSupport.findAll(BookList.class); 二、添加本地图书: intent = new Intent(this, FileChooserActivity.class); this.startActivity(intent); 三、删除本地图书: DataSupport.delete(BookList.class, book.getId()); 四、阅读单子书: ReadActivity.openBook(book, LocalBookshelfActivity.this);
第三方及开源框架使用:maven
一、添加了bugly 异常上报与更新,登陆https://bugly.qq.com/v2/crash-reporting/dashboard/9bb43e127f?pid=1 申请appid,替换便可 二、添加了友盟统计,可登陆http://passport.umeng.com/login ,申请appkey,替换便可 三、上下拉刷新:https://github.com/lcodecorex/TwinklingRefreshLayout(这个稳定,bug少) 四、项目全局使用RecyclerView,适配器的二次封装使用:(支持多种布局) 博客:http://blog.csdn.net/fisher0113/article/details/51955845 github:https://github.com/fishyer/StudyRecyclerView 五、数据库:使用litepal ,轻量,简单:https://github.com/LitePalFramework/LitePal
If you have any questions/queries/Bugs/Hugs please mail @ taohailili@gmail.com布局