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中列出,这与其说是一个正式要求,不如说是一种惯例。