标题、状态栏的隐藏
标题栏隐藏
在Activity.setCurrentView();之前调用此方法
private void HideTitle() {
// TODO Auto-generated method stub
requestWindowFeature(Window.FEATURE_NO_TITLE);}
状态栏隐藏(全屏)
在Activity.setCurrentView();之前调用此方法
private void HideTitle() {
// TODO Auto-generated method stub
requestWindowFeature(Window.FEATURE_NO_TITLE);
}
private void HideStatusBar() {
// TODO Auto-generated method stub
//隐藏标题
requestWindowFeature(Window.FEATURE_NO_TITLE);
//定义全屏参数
int flag=WindowManager.LayoutParams.FLAG_FULLSCREEN;
//获得窗口对象
Window myWindow=this.getWindow();
//设置Flag标识
myWindow.setFlags(flag,flag);
}