go fullscreen
This commit is contained in:
parent
65b4301c71
commit
3510b413ae
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user