splash screen application and hide action bar

后端 未结 5 1094
夕颜
夕颜 2020-12-08 07:26

I\'m trying to figure out how is it possible to hide the action bar for a splash screen activity. I did something which hide my action bar on my splash screen, but there is

5条回答
  •  离开以前
    2020-12-08 08:04

    Small And Sweet, eazy

    Do on In OnCreate

    View decorView = getWindow().getDecorView();
            int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
                    | View.SYSTEM_UI_FLAG_FULLSCREEN;
            decorView.setSystemUiVisibility(uiOptions);
    

提交回复
热议问题