[TIMOB-14319] iOS: Implement the scroll/drag start/end events for ListView
| GitHub Issue | n/a |
|---|---|
| Type | Sub-task |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-08-01T23:21:23.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | 2013 Sprint 16, 2013 Sprint 16 API, Release 3.2.0 |
| Components | iOS |
| Labels | n/a |
| Reporter | Bryan Hughes |
| Assignee | Vishal Duggal |
| Created | 2013-06-20T20:23:52.000+0000 |
| Updated | 2017-03-21T18:34:18.000+0000 |
Description
Implement the new event and method as specified in TIMOB-14318
Test Code. Note to testers. Ensure the following 1. Event fired only once. 2. Fired when doing a normal scroll. 3. Fired when scrolling using the sectionIndexTitles
function genSection(sectionIndex) { var section = Ti.UI.createListSection({ headerTitle: 'Section '+sectionIndex}); var data = []; var row=1; while(row<21) { data.push({properties:{title:'Section '+sectionIndex+' Row '+row}}); row++; } section.setItems(data); return section; } var win = Ti.UI.createWindow({backgroundColor: 'white'}); var listView = Ti.UI.createListView(); var sections = []; var indices = []; var sc=0; while(sc<10) { sections.push(genSection(sc+1)); indices.push({index:sc,title:'S'+sc}); sc++; } listView.sections = sections; listView.sectionIndexTitles = indices; listView.setMarker({sectionIndex:5,itemIndex:15}); listView.addEventListener('marker',function(e){ Ti.API.info('GOT MARKER EVENT'); }) win.add(listView); win.open();Pull pending https://github.com/appcelerator/titanium_mobile/pull/4528
Closing ticket as fixed.