Kinetic scrolling using ListBox or ListView?

I am making a simple application for touch screen devices, and I would like to implement today's mod: kinetic scrolling. Can this be done, and if so, how?

PS: Kinetic scrolling: a scrolling mechanism in which you do not use the scroll bar to scroll through the contents, but you touch the list itself and drag it and click. The physics engine then calculates the speed and stops based on the given parameters.

+3
source share
1 answer

Use the equations of motion .

Very simple outline:

0 , maxV ( ) -.

, A , T

v = min {maxV, aT}

- , , , .

, -

+4

Source: https://habr.com/ru/post/1742641/


All Articles