Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/235.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 章节列表epub siegmann Epulib_Android_Epub - Fatal编程技术网

Android 章节列表epub siegmann Epulib

Android 章节列表epub siegmann Epulib,android,epub,Android,Epub,我可以拿书名的章节列表 private void logTableOfContents(List<TOCReference> tocReferences, int depth) { if (tocReferences == null) { return; } for (TOCReference tocReference : tocReferences) { StringBuilder tocString = new Strin

我可以拿书名的章节列表

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);

    }

}
private void内容日志表(列表引用,int深度){
if(tocpreferences==null){
返回;
}
for(TOCReference TOCReference:tocReferences){
StringBuilder tocString=新的StringBuilder();
for(int i=0;i

如何移动到本章开始的资源行?

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

,只是要指出,在epub 2中,没有“章节”的概念。事实上,在大多数EPUB文件中,XHTML文件对应于章节,并在NCX TOC中列出,这与其说是一个正式要求,不如说是一种惯例。