Project: titanium
Issue TIMOB-16494: TiAPI: Allow multiple markers in ListView
The current setMarker implementation works fine for a use case when you want to lazy-load data in a list or otherwise only care about scrolling in one direction. However, I have a use case in which I want to know if the user scrolls in either direction in a ListView. It appears that I can only set one marker on the list at a time. In the attached project, I populate the list with 100 items, scroll to item 50, and set markers at 30 and 70. I would like the marker event to fire if the user scrolls to either item 30 or item 70. Right now, I have to choose one or the other, which means I can't implement my desired interface with a ListView. If you allow setting multiple markers, perhaps it will be helpful to also add a clearMarkers method on ListView to remove them all at once. Although I selected iOS as the platform in the ticket, I assume this impacts all platforms.
Story points: 21