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
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.
View.getScrollY
should be helpful. That should give you the scroll position that you're looking for.