Back to project page androidcomplete.
The source code is released under:
MIT License
If you think the Android project androidcomplete listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.core.helpers; //from www .j ava 2s .c o m import android.app.Activity; import android.view.Window; import android.view.WindowManager; public class LayoutHelpers { /** * Below methods are helpful to do programmatically * or just change the theme in AndroidManifest.xml */ /** * Make the current Window FullScreen * Hide Status Bar */ public static void makeFullScreen(Activity activity){ activity.requestWindowFeature(Window.FEATURE_NO_TITLE); activity.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); } /** * Make the current Window FullScreen don't hide status bar */ public static void hideTitle(Activity activity){ activity.requestWindowFeature(Window.FEATURE_NO_TITLE); } }