
Gallery collapses automatically on scrollable view click. If you want to do it manually use function expand() Gallery will be automatically expanded on Collapsing Toolbar click.

Placeholder view should be invisible and is used to expand upper and lower views. This structure is very similar to structure implemented in Google's Support Design Library, for obvious reasons.īackground gallery view should be placed inside a container, the container will be drawn and blurred but only the inner view will receive touch events. Remember to assign each element a proper ID. |-> Placeholder view that will be expanded, must be first element of view to make it work (id: gallery_coordinator_placeholder) |-> Scrollable view (for example NestedScrollView id: gallery_coordinator_scroll)

| |-> Toolbar (id: gallery_coordinator_toolbar) |-> AppBarLayout (id: gallery_coordinator_appbarlayout) | |-> Gallery view (for example ViewPager id: gallery_coordinator_gallery) |-> Gallery container layout (id: gallery_coordinator_gallery_container) In order to use BlurZoomGallery you need to implement following view hierarchy in your XML layout file: | Import dependency using Gradle: compile ':blur-zoom-gallery:1.0.0'

