cocos2d-x 3.2 listview scorllview 等容器在小米华为等部分手机显示泛白解决
时间:2015-07-22 12:13:39
收藏:0
阅读:673
感觉记不住,代码贴上以免以后难找
在proj.android\src\org\cocos2dx\cpp\AppActivity.java 中的
public class AppActivity extends Cocos2dxActivity 里面添加以下代码
public Cocos2dxGLSurfaceView onCreateView() {
Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
glSurfaceView.setEGLConfigChooser(8 , 8, 8, 8, 16, 8);
return glSurfaceView;
}
原文:http://www.cnblogs.com/abelmou/p/4666560.html
评论(0)