How to collapse/expand a view based on scroll direction?

前端 未结 4 1846
一整个雨季
一整个雨季 2020-12-11 04:39

I have a View and a RecyclerView housed in a LinearLayout. What I want to achieve is something like this:

https://material.google.com/patterns/scrolling-techniques.h

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-11 05:03

    You need to use CoordinatorLayout to achieve what you want. You could find all needed information in this tutorial.

提交回复
热议问题