[TIMOB-2622] Android: Add scroll end event to scroll views
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2011-04-15T03:25:07.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Backlog |
Components | Android |
Labels | android, feature, rplist, scrollview |
Reporter | Bill Dawson |
Assignee | Bill Dawson |
Created | 2011-04-15T03:25:06.000+0000 |
Updated | 2017-03-16T20:41:47.000+0000 |
Description
cf #2422 re iOS, feature request from customer
Unless I'm missing something really hacky and tricky that we could do, I don't see any way to implement this in Android. We get the
scroll
event easily thanks to AndroidView.onScrollChanged
. For ourTableView
, we can getscrollEnd
easily thanks to AndroidListView.setOnScrollListener
, the listener for which containsonScrollStateChanged
, which can be checked forSCROLL_STATE_IDLE
. But for non-ListView scrollers such as theScrollView
, this doesn't exist.Hacky solutions like maybe checking for the first touch
UP
event after aonScrollChanged
event -- meaning the user has lifted their finger after a scroll -- wouldn't take into account that the view still may be flinging, and also wouldn't account for a scroll caused by the trackpad.In short, I can't think of any way to do this. Any ideas out there in Donland?
Moving to M05 to see if I can find away around it.
There is some discrepancy about what this event is suppose to do. It appears that it was put in iOS to deal with pull for refresh. Android doesn't have "overscroll" until API 9. Moving to TBS until we can resolve what the event is suppose to do on both platforms.
iOS ticket can be tracked here: https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobile/tickets/2975-ios-scroll-end-view-consistency-parity-with-android"> https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobi...
Closing ticket as the information that was requested was never provided.