In http://www.google.com/design/spec/patterns/scrolling-techniques.html described scrolling techniques. But I have not found details of how to implement it. I'm trying to implement "Flexible space with image" anyone have an example of this?
Inside AppBarLaout , add child CollapsingToolbarLayout and TabLayout . Keep Toolbar and ImageView into CollapsingToolbarLayout . 4. Add attribute app:layout_scrollFlags="scroll|exitUntilCollapsed" to CollapsingToolbarLayout and attribute app:layout_scrollFlags="scroll|enterAlways" to Toolbar for collapsing effect.
NestedScrollView is just like ScrollView , but it supports acting as both a nested scrolling parent and child on both new and old versions of Android. Nested scrolling is enabled by default.
android:fillViewport. Defines whether the scrollview should stretch its content to fill the viewport.
I think this lib perfectly suits your need :
https://github.com/ksoichiro/Android-ObservableScrollView
It includes all the scrolling techniques described in the Google design specs and more.
Moreover, it brings support for ListViews, GridViews, ScrollViews, RecyclerViews and WebViews.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With