public void showLastRead() { int num = prefsManager.getLastnum(); float per = prefsManager.getLastPer(); currentPageNo = num; String path = book.getFlatNavPoints().get(currentPageNo - 1).getContent().getPath(); content.loadContent(path, per); chapter.startAnimation(chapterLeftOut); }
public void showPre() { if (currentPageNo == 1) { Toast.makeText(mContext, "已经是最前一章", Toast.LENGTH_SHORT).show(); return; } currentPageNo--; String path = book.getFlatNavPoints().get(currentPageNo - 1).getContent().getPath(); content.loadContent(path, 0); }
public void showPage(int number) { currentPageNo = number; String path = book.getFlatNavPoints().get(currentPageNo - 1).getContent().getPath(); content.loadContent(path, 0); chapter.startAnimation(chapterLeftOut); }