Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17424] Android: Add ListView "change" event to be fired when items change

GitHub Issuen/a
TypeNew Feature
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.3.0
Fix Version/sn/a
ComponentsAndroid
LabelsTCSupport, infinitescroll, listview, marker
ReporterFokke Zandbergen
AssigneeUnknown
Created2014-07-30T17:16:25.000+0000
Updated2018-02-28T20:04:10.000+0000

Description

Infinite scroll is a common concept used in long lists/tables. Both I (https://github.com/FokkeZB/nl.fokkezb.infiniteScroll/pull/24) and yourself (https://github.com/appcelerator-se/InfiniteListView/blob/master/app/controllers/index.js) have been trying to implement this in the new ListView. When you keep it synchronous and integrated like the second example this is simple, but wrapped in a generic widget you run into the issue on setting and moving the marker when the list is first populated or items are added later through other means then through the widget detecting the user scrolling to the end. I think the marker-event is fine and I understand why the scroll-event needed to be removed to improve performance. However, I think it would be even better if complimented by a change-event that would fire when the content of the list changes: * A section is added/removed (/changed?) * An item is added/removed (/changed?) With this event such a widget would be able to re-set the marker to the last item. An alternative that might be even better is to have a end-event that fires when the list is scrolled to the end. This would *not* allow you to already start loading when the user is *almost* at the end though, so I would still call for the change-event (as well).

Comments

No comments

JSON Source