fengjingmeng item拿到数据后要自己写逻辑处理的。。。。。。。
private _initView():void {
this._furnitureList = new List();
this._furnitureList.itemRender = FurnitureItemCell;
this._furnitureList.renderHandler = Handler.create(this, this.__renderFurnitureItem, null, false);
this._furnitureList.repeatX = 5;
this._furnitureList.repeatY = 3;
this._furnitureList.vScrollBarSkin = "";
this._furnitureList.array = [];
this..addChild(this._furnitureList);
}
private __renderFurnitureItem(cell:FurnitureItemCell, index:number):void {
cell.furnitureInfo = cell.dataSource;
}
http://layaair.ldc.layabox.com/demo/?category=2d&group=UI&name=List
官方例子也有。
你不写逻辑,代码它自己怎么知道你要显示图片呢~~~~~