Detect ScrollView has reached the end

前端 未结 7 1107
栀梦
栀梦 2020-12-23 21:32

I have a Text with long text inside a ScrollView and I want to detect when the user has scrolled to the end of the text so I can enable a button.

7条回答
  •  情话喂你
    2020-12-23 21:48

    Another solution could be to use a ListView with a single row (your text) which has onEndReached method. See the documentation here

提交回复
热议问题