Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ScrollView开始/结束滚动时如何以编程方式连接到 Android ?我有一个View放在ScrollView. 我希望View在滚动开始之前和滚动结束后立即通知我的自定义以执行一些任意代码。
ScrollView
View
注意:我来自 iOS 开发,基本上我正在寻找与UIScrollViewDelegate.
UIScrollViewDelegate
为此,您需要通过从滚动视图继承来创建自定义滚动视图。
检查下面的链接。它将帮助您:
同步 ScrollView 滚动位置 - android
Android:检测 ScrollView 何时停止滚动