【问题标题】:Bounce scrolling effect in RecycleViewRecyclerView 中的弹跳滚动效果
【发布时间】:2017-11-21 07:06:57
【问题描述】:

我想在 android recycleview 上实现弹跳动画效果。 我该怎么做?

<android.support.v7.widget.RecyclerView
    android:id="@+id/recycler_view"
    android:scrollbars="vertical"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"/>

【问题讨论】:

  • 你试过什么?你真的研究过什么吗?填写谷歌“recyclerview 弹跳效果”会让你找到this 答案。
  • 谢谢@azizbekian 你能帮我吗?如何在我的自定义 RecycleView 类中实现像这个库 'com.chauthai.overscroll:overscroll-bouncy:0.1.0' .

标签: android-recyclerview scrollview android-animation


【解决方案1】:

RecyclerView 替换为RecyclerViewBouncy

添加依赖:

dependencies {
    implementation 'com.chauthai.overscroll:overscroll-bouncy:0.1.0'
}

在布局中:

<com.chauthai.overscroll.RecyclerViewBouncy .../>

你只能使用LinearLayoutManager

【讨论】:

    猜你喜欢
    • 2020-10-15
    • 1970-01-01
    • 1970-01-01
    • 2015-02-27
    • 2021-12-29
    • 1970-01-01
    • 2014-06-26
    • 2020-04-08
    • 1970-01-01
    相关资源
    最近更新 更多