epub siegmann epublib章节列表

时间:2016-03-23 11:57:46

标签: android epub

我可以列出章节标题

private void logTableOfContents(List<TOCReference> tocReferences, int depth) {
    if (tocReferences == null) {
        return;
    }

    for (TOCReference tocReference : tocReferences) {
        StringBuilder tocString = new StringBuilder();

        for (int i = 0; i < depth; i++) {
            tocString.append("\t");
        }
        tocString.append(tocReference.getTitle());

        Log.i("epublib", tocString.toString());
        logTableOfContents(tocReference.getChildren(), depth + 1);

    }

}

如何在本章开始的资源中移至行?

1 个答案:

答案 0 :(得分:0)

解决!所有epub书籍都有带章节id的标签

相关问题