實現(xiàn)全屏函數(shù):
private void setFullScreen(){
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
}
退出全屏函數(shù):
private void quitFullScreen(){
final WindowManager.LayoutParams attrs = getWindow().getAttributes();
attrs.flags &= (~WindowManager.LayoutParams.FLAG_FULLSCREEN);
getWindow().setAttributes(attrs);
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
}
posted on 2012-03-17 23:47
小果子 閱讀(148)
評論(0) 編輯 收藏 引用 所屬分類:
Android & Ios