Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android:如何监听滚动事件?_Android_Scrollview - Fatal编程技术网

Android:如何监听滚动事件?

Android:如何监听滚动事件?,android,scrollview,Android,Scrollview,是否有方法在ScrollView或HorizontalScrollView中滚动的过程中建立侦听器?您只能创建一个扩展ScrollView并重写onScrollChanged()方法的类。是的,使用完全限定的类名没有这种方法。但是,重写scrollTo()会起作用。是的,有这样一种方法:

是否有方法在ScrollView或HorizontalScrollView中滚动的过程中建立侦听器?

您只能创建一个扩展ScrollView并重写onScrollChanged()方法的类。

是的,使用完全限定的类名<代码>没有这种方法。但是,重写scrollTo()会起作用。是的,有这样一种方法: