Bouncy
Bouncy copied to clipboard
BouncyNestedScrollView is not wokring!
I did exactly as the instructions said but bouncy effect didn't work
- Video
https://github.com/valkriaine/Bouncy/assets/92970686/f1a2e87a-efe8-48f6-a99e-f445d99cd3a6
fragment_home.xml
<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);