i am using com.github.barteksc.pdfviewer.PDFView in my project inside the nested scrollview the pdf view is not scrolling the nested scrollview it self scrolling
Asked
Active
Viewed 1,998 times
0
-
You will have to use trick method to make it scroll as well. think of it as another scrollview inside scroll view. http://stackoverflow.com/questions/17671123/scrollview-inside-a-scrollview-in-android-issue – Im Batman Feb 07 '17 at 07:30
-
Possible duplicate of [Scrollview inside a scrollview in android issue](http://stackoverflow.com/questions/17671123/scrollview-inside-a-scrollview-in-android-issue) – ozOli Feb 07 '17 at 08:38
1 Answers
-1
You have to change layout_height
to "1200dp".
It will work.
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.github.barteksc.pdfviewer.PDFView
android:id="@+id/pdfView"
android:layout_width="match_parent"
android:layout_height="1200dp" />
</ScrollView>

Paul Roub
- 36,322
- 27
- 84
- 93

Samet ÖZTOPRAK
- 3,112
- 3
- 32
- 33
-
-
You have to change layout_height ? It is not working set wrap_content or fill_content – Samet ÖZTOPRAK Jun 02 '20 at 19:04
-
This is also not working, I have been trying to achieve this from last 2 days but not getting any success till now. If I use match_parent then the PDF does not even shows up but with 1200 dp it is showing but does not scroll. As you mention to set_wrap it also works like match_parent does not show. – MrinmoyMk Jun 03 '20 at 16:10