cocos2d-x 3.2 listview scorllview 等容器在小米华为等部分手机显示泛白解决
生活随笔
收集整理的這篇文章主要介紹了
cocos2d-x 3.2 listview scorllview 等容器在小米华为等部分手机显示泛白解决
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
感覺記不住,代碼貼上以免以后難找
在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;
??? }
轉載于:https://www.cnblogs.com/abelmou/p/4666560.html
總結
以上是生活随笔為你收集整理的cocos2d-x 3.2 listview scorllview 等容器在小米华为等部分手机显示泛白解决的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: BZOJ 3685: 普通van Emd
- 下一篇: windowSoftInputMode属