valkriaine / Bouncy

RecyclerView and NestedScrollView with physics-based bouncy overscroll effect
Apache License 2.0
198 stars 18 forks source link

BouncyNestedScrollView is not wokring! #22

Open dckrOff opened 1 year ago

dckrOff commented 1 year ago

I did exactly as the instructions said but bouncy effect didn't work

https://github.com/valkriaine/Bouncy/assets/92970686/f1a2e87a-efe8-48f6-a99e-f445d99cd3a6

fragment_home.xml

image

 <com.factor.bouncy.BouncyNestedScrollView
        android:id="@+id/bouncy_nsv"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:orientation="vertical"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/textView">

        <androidx.constraintlayout.widget.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">

           ...
           ...

        </androidx.constraintlayout.widget.ConstraintLayout>
    </com.factor.bouncy.BouncyNestedScrollView>

HomeFragment.java

bouncyNestedScrollView.setBindSpringToParent(true);