box / box-android-preview-sdk

Box Android Preview SDK
Apache License 2.0
13 stars 10 forks source link

Thumbnail grid view and search features in BoxPreviewViewPager #21

Open omkarhande-zz opened 5 years ago

omkarhande-zz commented 5 years ago

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 commented 5 years ago

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.