go fullscreen

This commit is contained in:
Josh Holtrop 2012-11-11 20:59:17 -05:00
parent 65b4301c71
commit 3510b413ae

View File

@ -4,6 +4,8 @@ import android.opengl.GLSurfaceView;
import android.app.Activity;
import android.os.Bundle;
import android.content.res.AssetManager;
import android.view.WindowManager;
import android.view.Window;
public class MainOpenGL extends Activity
{
@ -15,6 +17,10 @@ public class MainOpenGL extends Activity
{
super.onCreate(savedInstanceState);
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
mGLView = new MyGLSurfaceView(this, getAssets());
setContentView(mGLView);
}