To enter full screen mode, you have to hide title bar and status bar. Below code is used to remove title bar.
requestWindowFeature(Window.FEATURE_NO_TITLE);
Regarding to status bar, there are two versions of the code.
For Android SDK 1.0:
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
For Android SDK Previous 1.0:
getWindow().setFlags(WindowManager.LayoutParams.NO_STATUS_BAR_FLAG,
WindowManager.LayoutParams.NO_STATUS_BAR_FLAG);
Friday, February 6, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment