状态栏

requestWindowFeature(Window.FEATURE_NO_TITLE); 
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

这段代码加到setContentView()之前

android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

你可能感兴趣的:(状态栏)