Calculate how far a ListView has been scrolled in pixels

108 Views Asked by At

Very simply, I have a requirement to calculate when a ListView has been scrolled (up or down) a certain number of device pixels.

For example, lets say my ListView is 1000 dp in height, how can I tell when the list has been scrolled at least 100 dp, or 1/10th the height of the ListView?

Thanks

0

There are 0 best solutions below