Detect end of page and disable scrolling in AndroidPdfViewer

552 Views Asked by At

I use https://github.com/barteksc/AndroidPdfViewer

I need to detect end of page, disable scrolling and make some validates. How i can do it?

1

There are 1 best solutions below

0
On

As the PDFView consists of a Relative Layout, you could use the examples here: How to get programmatically width and height of Relative - Linear layout in android? to get the size of the view. Then you could get the current position from this view: How to get absolute coordinates from Views in a RelativeLayout Maybe this can help you.