I have a RecyclerView
in which i have an image ,a few TextView
s and 2 ImageButton
s.
I have 7-8 such rows to display in my Activity>
There is one RecyclerView
method specifically designed to control the fling speed you only need to override it to achieve the friction/slowdown effect you mentioned in your question.
One simple implementation you could try:
@Override
public boolean fling(int velocityX, int velocityY)
{
// if FLING_SPEED_FACTOR between [0, 1[ => slowdown
velocityY *= FLING_SPEED_FACTOR;
return super.fling(velocityX, velocityY);
}