Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does display in fragment #176

Closed
mark-burns opened this issue Jan 23, 2016 · 1 comment
Closed

Does display in fragment #176

mark-burns opened this issue Jan 23, 2016 · 1 comment

Comments

@mark-burns
Copy link

When I call pdfView.fromAsset("about.pdf").load() in the onCreateView method of a fragment the view never draws (white screen). It looks like the view never gets draw events. Are there events that I need to forward from the activity or fragment? It works fine if I use it in an activity without a fragment.

@mark-burns
Copy link
Author

I figured this one out. The PDFView was placed inside of a android.support.v4.widget.NestedScrollView. This view seems to eat the events necessary for drawing. When I replaced it with a FrameLayout then things worked just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant