Details
-
Type:
Sub-task
-
Status: Closed
-
Priority:
High
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Release 3.1.0, 2013 Sprint 05 API, 2013 Sprint 05
-
Component/s: Android
-
Labels:
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.