How to make my app full screen on Galaxy Tab

后端 未结 8 1397
余生分开走
余生分开走 2020-12-30 11:29

I\'ve been trying everything I can think of to get my app to display full screen on the Galaxy Tab.

Basically, it works like the Lunar Lander example app that comes

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-30 11:59

     public void onCreate(Bundle savedInstanceState) {
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    

    This is working fine for me... try this

提交回复
热议问题