首页 > 代码库 > cocos2dx listview使用时,win32调试显示正常,安卓真机显示异常

cocos2dx listview使用时,win32调试显示正常,安卓真机显示异常

将AppActivity.java的内容修改为如下:

package org.cocos2dx.cpp;

import org.cocos2dx.lib.Cocos2dxActivity;
import org.cocos2dx.lib.Cocos2dxGLSurfaceView;

public class AppActivity extends Cocos2dxActivity {
    public Cocos2dxGLSurfaceView onCreateView() {
        Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
        glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);
 
        return glSurfaceView;
    }
}

部署一下  一切都是那么美好!