use of com.quran.labs.androidquran.ui.util.PageController in project quran_android by quran.
the class QuranImagePageLayout method setPageController.
@Override
public void setPageController(PageController controller, int pageNumber) {
super.setPageController(controller, pageNumber);
final GestureDetector gestureDetector = new GestureDetector(context, new PageGestureDetector());
OnTouchListener gestureListener = (v, event) -> gestureDetector.onTouchEvent(event);
imageView.setOnTouchListener(gestureListener);
imageView.setClickable(true);
imageView.setLongClickable(true);
}
Aggregations