当我的回收器视图垂直滚动时,我想显示一个隐藏的搜索栏。这将复制搜索栏在WhatsApp和Spotify中弹出的方式。
我认为这样做的一种方法是检测回收器视图上的过度滚动,然后显示栏。但是我不知道该如何实现。
最好使用github开发的一些库,而不是自己使用。其中一些链接遵循
-
https://medium.com/@dan1ve/android-howto-material-design-tabs-scrolling-like-in-google-play-play-music-music-12273ce07bc
-
https://github.com/codepath/android_guides/wiki/wiki/handling-scrolls-with-coordinatorlayoutlayout
- https://androiddvlpr.com/android-animation-library/