在src/org/cocos2dx/lib/Cocos2dxActivity.java 中注释代码:
// // Cocos2dxEditText layout
// ViewGroup.LayoutParams edittext_layout_params =
// new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
// ViewGroup.LayoutParams.WRAP_CONTENT);
// Cocos2dxEditText edittext = new Cocos2dxEditText(this);
// edittext.setLayoutParams(edittext_layout_params);
//
// // ...add to FrameLayout
// framelayout.addView(edittext);
稍后代码:
// this.mGLSurfaceView.setCocos2dxEditText(edittext);
我不知道COCOS2D-X创建这个框有什么用,这不是挡着屏幕了吗?