• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 14 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0032 秒)

1. List修改datasource数据的时候出现部分数据不能被修改 [ 100%]

List修改datasource数据的时候出现部分数据不能被修改 如图:   我这里在datasource里面同时修改三个数据,但是在下面的显示效果中,只有背景图片显示错误,前面的红勾勾和文字内容都是正确的,这个是bug吗,IDE是最新版本的  ...

来源: Laya_社区 发布时间: 20170207

2. list只能显示一个图片 [ 91%]

...i+'tong.jpg'}}; this.data.push(item); } console.log(this.data); this.list1.dataSource = this.data; this.list1.x = 50; this.list1.y = 500; this.list1.getChildAt(0).height = 100; this.list1.vScrollBarSkin = ""; this.list1.hScrollBarSkin = "comp/hscroll.png"; this.list1.renderHandler = new Laya.Handler...

来源: Laya_社区 发布时间: 20170914

3. List滚动条问题 [ 91%]

...common\\BalanceSellDlg\\xiaodou.png",hot:1,orderCount:9} cell.setGold(cell.dataSource.balance + cell.dataSource.gift); cell.setGoldImage(cell.dataSource.imgPath); cell.setPrice(cell.dataSource.price); }   附件 : --> 2017-04-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

来源: Laya_社区 发布时间: 20170422

4. list item 添加事件后无法监听 [ 85%]

...tem(cell, index) {     console.log(index);     // console.log(cell.dataSource);     cell.setImg(cell.dataSource[index]);     cell.on(Laya.Event.CLICK, function() {         console.log("click")     }) }  function onSelect(index) {     console.log("当前选择的索...

来源: Laya_社区 发布时间: 20180724

5. List中放TextInput,当list滚动的时候,复用会有问题,input中的内容会乱,尤其有输入框focus的情况下 [ 84%]

....array = data; } function updateItem(cell, index) { cell.label.text = cell.dataSource.lb; cell.input.text = cell.dataSource.value; // cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); } })();这段代码直接复制到官网的例子里面执...

来源: Laya_社区 发布时间: 20180312

6. list里面可以加入多个view吗? [ 82%]

...; } private function onRender(cell:Item,index:int):void { cell.setImg(cell.dataSource.src); cell.setLabel(cell.dataSource.txt); } } } import laya.ui.Image; import laya.ui.Label; import laya.ui.View; class Item extends View { public static var WID:int=150; public static var HEI:int=85; private var im...

来源: Laya_社区 发布时间: 20170626

7. List翻页效果 [ 81%]

...rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.lang] } public setCurPage(ind...

来源: Laya_社区 发布时间: 20171202

8. List翻页效果怎么实现 [ 81%]

...rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.lang] } public setCurPage(ind...

来源: Laya_社区 发布时间: 20181112

9. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 80%]

...rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.lang] } public setCurPage(ind...

来源: Laya_社区 发布时间: 20180724

10. 请问laya有没有类似翻页容器(pageView)的组件? [ 79%]

...rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.lang] } public setCurPage(ind...

来源: Laya_社区 发布时间: 20170215