Android ListView Scroll Position in Pixel Detect

Go To StackoverFlow.com

0

I want to detect the number of pixel on the listview that the user has scrolled. and at the same time, i can base on the number of pixel have been scrolled and i display a textview with the pixel that have been scrolled.

would appreciate your answer .thanks!!

justicepenny

2012-04-05 00:28
by justicepenny


1

Check my answer to this question.

View.getScrollY()

is a method inherited from View, and the doc says:

Return the scrolled top position of this view. This is the top edge of the displayed part of your view.

Therefore for full screen lists it will always return 0.

2012-12-04 16:46
by Maria
thanks for input , though i have already another solutio - justicepenny 2012-12-05 15:06
@justicepenny care to share your solution - zirael 2015-02-27 10:57


1

View.getScrollY should be helpful. That should give you the scroll position that you're looking for.

2012-04-05 00:35
by kabuko
thanks for input , though i have already another solutio - justicepenny 2012-12-05 15:07
Ads