public void goBack() { if (chapter.getVisibility() == View.INVISIBLE) { chapter.setVisibility(View.VISIBLE); savehistory(); } else { ((main) mContext).exitApp(); } }
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); }
/** * Show chapter view * * @param scrollto if scroll in */ public void showChapters(boolean scrollto) { savehistory(); chapter.setVisibility(View.VISIBLE); // content.setVisibility(View.); if (scrollto) { showChapterAnimation(); } else { } }
private void showChapterAnimation() { chapter.startAnimation(chapterLeftIn); }
public void showPage(int number) { currentPageNo = number; String path = book.getFlatNavPoints().get(currentPageNo - 1).getContent().getPath(); content.loadContent(path, 0); chapter.startAnimation(chapterLeftOut); }