Android getting exact scroll position in ListView

前端 未结 8 1233
误落风尘
误落风尘 2020-12-01 02:56

I\'d like to get the exact, pixel position of the ListView scroll. And no, I am not referring to the first visible position.

Is there a way to achieve this?

8条回答
  •  死守一世寂寞
    2020-12-01 03:15

    If anyone else found this in Google while looking for a way to track relative scroll offsets in an OnScrollListener - that is, change in Y since the last call to the listener - here's a Gist showing how to calculate that.

提交回复
热议问题