在cocostudio编器里面看是正常的,win32运行也是正常的,但到了真机调试时,列表的容器的周围是白色覆盖整个屏幕,并且列表容器设置的特性设置为透明,整个容器区域却显示为一个绿色色块,容器中的项并没有被遮照住,这个是不是一个目前待修正的bug啊?
请帮忙提供引擎的版本,CocoStudio的版本。
运行的平台是web还是android?
引擎版本:cocos2d js 3.0 beta
CocoStudio版本:CocoStudio 1.4.0.1
平台:android
又试了一次用如下代码创建加载到显示节点,也一样的情况,创建代码如下:
this._lstPnl = ccui.ListView.create();
this._lstPnl.setDirection(ccui.ScrollView.DIR_VERTICAL);
this._lstPnl.setTouchEnabled(true);
this._lstPnl.setBounceEnabled(true);
this._lstPnl.setSize(cc.size(453, 330));
this._lstPnl.x = 2;
this._lstPnl.y = 2;
this._view.addChild(this._lstPnl);
…
或者直接加载到层上也是一样的效果,整个白屏,然后列表区显示为一个绿色块,其中的项数据是显示的,但没有按列表的尺寸遮照住
是不是我使用方式上不对啊,求调教啊…
楼主能提供cocostudio生成的.json文件中 关于listview的部分吗?
我后面没有使用cocostudio也是一样的问题,直接在代码里用如下代码:
this._lstPnl = ccui.ListView.create();
this._lstPnl.setDirection(ccui.ScrollView.DIR_VERTICAL);
this._lstPnl.setTouchEnabled(true);
this._lstPnl.setBounceEnabled(true);
this._lstPnl.setSize(cc.size(453, 330));
this._lstPnl.x = 2;
this._lstPnl.y = 2;
this._view.addChild(this._lstPnl);
并且我也试过ScrollView,也是一样的现象,代码如下:
this._lstView=ccui.ScrollView.create();
this._lstView.retain();
this._lstView.setDirection(ccui.ScrollView.DIR_VERTICAL);
this._lstView.setTouchEnabled(true);
this._lstView.setBounceEnabled(true);
this._lstView.setSize(cc.size(453, 330));
this._lstView.x = 2;
this._lstView.y = 2;
this._view.addChild(this._lstView);
应当不是cocoStudio的问题,我都试过直接在代码里创建一个ScrollView,然后直接addChild到一个层上,也是出现一样的问题,在win32下都是正常的,但是真机调试(android)就是有问题
不是,个人搞搞的
麻烦问下楼主你的问题是怎么解决的//