SkyEpub 4.2.2 for Android Released

Reflowable Layout

Fixes Issues that Big width table does not fit to screen width

**** New Listener
When custom script for certain chapter is needed, you can send the script to the sdk engine.
public interface ScriptListener {
// should return the custom script for chapterIndex
String getScriptForChapter(int chapterIndex); // datasource
}

In Advanced Demo, you can implement above listener like below
rv.setScriptListener(new ScriptDelegate());
.
.
.

class ScriptDelegate implements ScriptListener {
@Override
public String getScriptForChapter(int chapterIndex) {
// TODO Auto-generated method stub
String customScript = null;
customScript = “” +
“function changePColor() {” +
” var elements = document.getElementsByTagName(‘p’);” +
” for (var i=0; i<elements.length; i++) {" +
" elements[i].style.color = '#FF0000';" +
" }"+
"}"+
"changePColor();";

return customScript;
}
}