反弹对RecyclerView的影响 [英] Bounce Effect on RecyclerView
本文介绍了反弹对RecyclerView的影响的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想对RecyclerView
使用弹跳效果.每当我滚动内容时都会有弹跳效果...
I want to use a bounce effect on a RecyclerView
. A bounce effect whenever I overscroll the content...
是否存在相应的库或示例?
Does there exist a library or example for it?
推荐答案
我也找不到支持RecyclerView弹跳效果的任何库.最终,我最终自己实现了一个新的库.查看我的图书馆 overscroll-bouncy-android . .它目前支持带有LinearLayoutManager的RecyclerView.我也在使用ListView和ScrollView.
I also couldn't find any library that supports the bounce effect for RecyclerView. Eventually I ended up implementing a new library by myself. Check out my library overscroll-bouncy-android. . It currently supports RecyclerView with LinearLayoutManager. I'm also working on ListView and ScrollView.
要使用我的图书馆,
第1步:
dependencies {
compile 'com.chauthai.overscroll:overscroll-bouncy:0.1.0'
}
第2步:
<com.chauthai.overscroll.RecyclerViewBouncy
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
这篇关于反弹对RecyclerView的影响的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文