I have been using android design support library for collapsing toolbar layout. Everything works fine except that I want to scroll the whole view on scrolling content in col
Your pager content needs to have nested scrolling enabled. The easiest way to accomplish this is to just wrap it in a NestedScrollView:
NestedScrollView
fragment_image.xml
However this causes the parent height of the ImageView to be indeterminate, so you have to set it to some fixed height.
ImageView