首页 > 其他分享 >egret editor list更换内容

egret editor list更换内容

时间:2022-10-12 10:56:22浏览次数:35  
标签:egret arr eui list editor ArrayCollection icon

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

相关文章

  • ArrayListAndLinkedList
    集合一:集合框架对象的容器,实现了对象常用的操作,类似数组功能。二:集合和数组的区别数组长度固定,集合长度不固定数组可以存储基本类型和引用类型,集合只能存储引用类......
  • LeetCode148. Sort List
    题意链表排序方法递归代码classSolution{public:ListNode*sortList(ListNode*head){returnsortList(head,nullptr);}ListNode*......
  • egert editor加载网络图片
     egret.ImageLoader.crossOrigin="anonymous"; this.abc_img.source="https://readbook.koo6.cn/hanzibao/h5/z715/mh_di_z715.png"; this.abc_img.addEventListene......
  • Map.Entry详解及List的流Stream
    Map.Entry详解Map是java中的接口,Map.Entry是Map的一个内部接口。Map提供了一些常用方法,如keySet()、entrySet()等方法。keySet()方法返回值是Map中key值的集合;entrySet(......
  • CMakeLists.txt中打印所有变量
    一、打印可见变量及其值get_cmake_property(_variableNamesVARIABLES)foreach(_variableName${_variableNames})message(STATUS"${_variableName}=${${_variabl......
  • WPF listbox中添加index
    关键代码:如果中在ItemsControl中加入Index,"RelativeSource={RelativeSourceAncestorType=ListBoxItem}"可以写成,"RelativeSource={RelativeSourceTemplatedParent}"但是......
  • WPF ListBox添加新数据时自动滚到最后一行
    Xaml文件代码如下:<ListBoxx:Name="lstBox"Height="200"AlternationCount="100000"ItemsSource="{BindingLogs}"><List......
  • egret uiditor 列表显示item
    <e:Listid="icon_list"itemRendererSkinName="skins.size960_400_firstlistbtn"><e:ArrayCollection> <e:Array> <e:Objecta="1"/> ......
  • Opera Browser -- Access Restricted Sites using Free VPN /Free VPN Services List
    OperaBrowser --AccessRestrictedSitesusingFreeVPN:currentlythefeatureisavailableinOperaDeveloperversiononly.h​​ttp://www.clickonf5.org/126016......
  • Java 中初始化 List 的五种方法
    1、构造List后使用List.add初始化1List<String>stringList=newLinkedList<>();2stringList.add("a");3stringList.add("b");4stringList.add("c");这是......