You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then, you can set up the overscroll effect in your Fragment or Activity like this:
val nestedScrollView = view.findViewById<NestedScrollView>(R.id.scroll)
val overScrollDecorAdapter =NestedScrollViewOverScrollDecorAdapter(nestedScrollView)
val overScrollDecorator =VerticalOverScrollBounceEffectDecorator(overScrollDecorAdapter)
overScrollDecorator.setOverScrollUpdateListener { _, _, offset ->val tension =0.5f// Adjust the tension value here. Lower values result in less bounciness.val scaleFactor =1f+ tension *Math.abs(offset) / overScrollDecorAdapter.getView().height
overScrollDecorAdapter.view.scaleY = scaleFactor.toFloat()
}
No description provided.
The text was updated successfully, but these errors were encountered: