Is there some way to hide status bar and keep action bar visible?
问问题
1832 次
1 回答
13
Yes, there is.
You should set FLAG_FULLSCREEN
in your onCreate
method of Activity.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_main);
}
于 2012-10-16T17:54:05.100 回答