如何设置隐藏标题栏和状态栏
把状态栏(Status Bar)和标题栏(Title Bar)隐藏掉
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
final Window win = getWindow();
// No Statusbar
win.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
// No Titlebar
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.mylayout);
}
阅读(1623) | 评论(0) | 转发(0) |