當(dāng)前位置:
首頁(yè) >
cocos2d-x 3.2 listview scorllview 等容器在小米华为等部分手机显示泛白解决
發(fā)布時(shí)間:2025/7/14
43
豆豆
生活随笔
收集整理的這篇文章主要介紹了
cocos2d-x 3.2 listview scorllview 等容器在小米华为等部分手机显示泛白解决
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
感覺(jué)記不住,代碼貼上以免以后難找
在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;
??? }
轉(zhuǎn)載于:https://www.cnblogs.com/abelmou/p/4666560.html
總結(jié)
以上是生活随笔為你收集整理的cocos2d-x 3.2 listview scorllview 等容器在小米华为等部分手机显示泛白解决的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: BZOJ 3685: 普通van Emd
- 下一篇: 抽奖自定义中奖概率总结