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

Thumbnail grid view and search features in BoxPreviewViewPager #21

Open
omkarhande-zz opened this issue Nov 14, 2018 · 1 comment
Open

Comments

@omkarhande-zz
Copy link

I need to use Box Preview inside a fragment, so I made use of BoxPreviewViewPager. How do I get the controls like Thumbmnail Grid and Search here as well, just like in BoxPreviewActivity ?

@doncung
Copy link
Contributor

doncung commented Nov 16, 2018

We recommend using one or more of our Impl classes. You may need to check what kind of file you are displaying if your app doesn't know, but each impl has a number of activity life cycle methods you need to call on it for it to work properly. It will then add its menu options on top of whatever menus you have enabled in onCreateOptionsMenu (call the impl's inflateMenu method afterwards).

Thumbnail grid is special in that it is a fragment that has a createInstance method which you launch on your own if you so choose.

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

2 participants