Some test text!

Search
Hamburger Icon

Android / Guides / Scroll direction

Scroll direction in Android viewer

When scrolling through pages of a document in PDFViewCtrl, the scrolling direction can be changed by setting the page layout mode .

Vertical scrolling

Vertical scrolling mode (also known as continuous mode) can be enabled by setting the page presentation mode to either SINGLE_CONT, FACING_CONT, or FACING_COVER_CONT.

Here's what setting the page presentation mode to vertical scrolling looks like:

Vertical scrolling ```java //@data {"m":true}// // with PdfViewCtrlTabHostFragment2 PdfViewCtrlSettingsManager.updateViewMode(activity, PdfViewCtrlSettingsManager.KEY_PREF_VIEWMODE_CONTINUOUS_VALUE); // with PDFViewCtrl pdfViewCtrl.setPagePresentationMode(PDFViewCtrl.PagePresentationMode.SINGLE_CONT); ``` ```kotlin //@data {"m":true}// // with PdfViewCtrlTabHostFragment2 PdfViewCtrlSettingsManager.updateViewMode(activity, PdfViewCtrlSettingsManager.KEY_PREF_VIEWMODE_CONTINUOUS_VALUE) // with PDFViewCtrl mPdfViewCtrl.pagePresentationMode = PDFViewCtrl.PagePresentationMode.SINGLE_CONT ```

Horizontal scrolling

Horizontal scrolling mode (also known as non-continuous mode) can be enabled by setting the page presentation mode to either SINGLE, FACING, or FACING_COVER.

Here's what setting the page presentation mode to horizontal scrolling looks like:

Horizontal scrolling
// with PdfViewCtrlTabHostFragment2
PdfViewCtrlSettingsManager.updateViewMode(activity, PdfViewCtrlSettingsManager.KEY_PREF_VIEWMODE_CONTINUOUS_VALUE);
// with PDFViewCtrl
pdfViewCtrl.setPagePresentationMode(PDFViewCtrl.PagePresentationMode.SINGLE_CONT);

Trial setup questions? Ask experts on Discord
Need other help? Contact Support
Pricing or product questions? Contact Sales