Android scrollview onScrollChanged

前端 未结 11 1393
不思量自难忘°
不思量自难忘° 2020-12-08 20:36

I have a fixed content in my text view inside a scroll view. When the user scrolls to a certain position, I would like to start an activity or trigger a Toast.<

11条回答
  •  长情又很酷
    2020-12-08 21:08

    Actually there is a way to know how far the user has scrolled. The method getScrollY() from ScrollView tells you that.

提交回复
热议问题