一款乾淨美觀的本地電子書閱讀器,爲了世界和平,決定將代碼開源,稍加處理,便可實現各類夢幻功能。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佈局