this.ArrayCollection_arr=new eui.ArrayCollection();
this.ArrayCollection_arr.source=this.icon_list_arr;
this.icon_list.itemRenderer = Firstlistbtn;
this.icon_list.dataProvider =this.ArrayCollection_arr;
this.icon_list.addEventListener(eui.ItemTapEvent.ITEM_TAP,this.icon_list_handle,this);
this.list_scroller.addEventListener(egret.Event.ENTER_FRAME, this.onCheckJumpEvent, this);
划重点:
此方法会更新位置
this.ArrayCollection_arr.source=this.icon_list_arr;
此方法不会更新位置
this.ArrayCollection_arr.replaceAll(this.icon_list_arr);
标签:egret,arr,eui,list,editor,ArrayCollection,icon From: https://www.cnblogs.com/dt1991/p/16783739.html