2011年8月12日

android 隱藏標題列/狀態列

android 隱藏 標題列 與 狀態列
(title bar and notification bar)


在onCreate()裡加入
/*隱藏標題列*/
requestWindowFeature(Window.FEATURE_NO_TITLE);
/*隱藏狀態列*/
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);


皆在
setContentView();
之前敘述。

沒有留言:

張貼留言