DImuthuUpe / AndroidPdfViewer

Android view for displaying PDFs rendered with PdfiumAndroid
Apache License 2.0
8.12k stars 1.89k forks source link

Make it compatible it CoordinatorLayout #600

Open feinstein opened 6 years ago

feinstein commented 6 years ago

I wanted to hide the Toolbar when the user scrolls the PDF, the same way a NestedScrollView does, but this doesn't work for PDFView.

It would be great if we could just add @string/appbar_scrolling_view_behavior to the PDFView and it will work with the default behaviors of CoordinatorLayout.

alexluckyq commented 6 years ago

Looking for the exact same thing. any workaround so far?

feinstein commented 6 years ago

I am looking at subclassing it and implement NestedScrollingChild2 but I still have to learn more about the whole mechanics behind this

Cilenco commented 4 years ago

I have implemented it and created a pull request for this #827

fernandoColladoDL commented 4 years ago

Does it work by adding app: layout_behavior = "@ string / appbar_scrolling_view_behavior" to the PDFView and placing pdfView.setNestedScrollingEnabled (true) ?