diff --git a/imageviewer/src/main/java/cn/imageviewer/view/ImageViewer.java b/imageviewer/src/main/java/cn/imageviewer/view/ImageViewer.java index 46bb9f7..621c7e3 100644 --- a/imageviewer/src/main/java/cn/imageviewer/view/ImageViewer.java +++ b/imageviewer/src/main/java/cn/imageviewer/view/ImageViewer.java @@ -121,6 +121,10 @@ public void onPageSelected(int position) { } } + public void setCurrentPage(int page) { + index = page; + } + @Override public void onDestroyView() { if (onDestroyCallback != null) {