3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AndroidでPageViewを使うとなんか背景が緑になる

Posted at

Androidの実機でui::PageViewを使うと背景が緑色になってしまうことがあります。

Screenshot_2014-08-03-17-54-48.png

公式で同じ問題が議論されていました。
ui::PageView bug with v3 rc1 : Green background on Android

AppActivityでglSurfaceViewの設定を変更すると正常に表示されます。

AppActivity.java
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;
    }

}

Screenshot_2014-08-03-17-57-48.png

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?