Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12774] Android: implement ListView to work with default Template with views recycling and data binding

GitHub Issuen/a
TypeSub-task
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-03-14T05:14:38.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.1.0, 2013 Sprint 05 API, 2013 Sprint 05
ComponentsAndroid
Labelsapi
ReporterHieu Pham
AssigneeHieu Pham
Created2013-02-17T09:40:43.000+0000
Updated2017-03-09T01:22:01.000+0000

Description

Implement listview that works with basic template with view recycling and data binding. Testing steps :
var section = Ti.UI.createSection();
var listView = Ti.UI.createListView({top: 0, width: 500, sections: [section]});
section.setData([
{title: {text: 'hi', backgroundColor: 'red'},
 leftImage: {image: 'appicon.png'}
}, 
{title: {text: 'hello', backgroundColor: 'blue'},
 leftImage: {image: 'appicon.png'}
}, 
{title: {text: 'row threee', backgroundColor: 'yellow'},
 leftImage: {image: 'appicon.png'}
}


]);
var win = Ti.UI.createWindow();
win.add(listView);
win.open();

1. Run this code, you should see a list view with 3 rows.

Comments

  1. Hieu Pham 2013-03-14

    PR: https://github.com/appcelerator/titanium_mobile/pull/3935
  2. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source