WEB开发网
开发学院手机开发Android 开发 android 隐藏状态栏和标题栏 阅读

android 隐藏状态栏和标题栏

 2010-07-22 01:09:00 来源:WEB开发网   
核心提示:super.onCreate(savedInstanceState);final Window win = getWindow();//隐藏状态栏win.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG

super.onCreate(savedInstanceState);

final Window win = getWindow();

//隐藏状态栏

win.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,

WindowManager.LayoutParams.FLAG_FULLSCREEN);

//隐藏标题栏

requestWindowFeature(Window.FEATURE_NO_TITLE);

setContentView(R.layout.main);

Tags:android 隐藏 状态

编辑录入:coldstar [复制链接] [打 印]
赞助商链接