List of usage examples for android.app Activity requestWindowFeature
public final boolean requestWindowFeature(int featureId)
From source file:Main.java
/** * set no title//from w w w . j a va 2 s .c om * * @param activity */ public static void setNotTitleScreen(Activity activity) { activity.requestWindowFeature(Window.FEATURE_NO_TITLE); }
From source file:Main.java
public static void setNoTitle(Activity paramActivity) { paramActivity.requestWindowFeature(1); }
From source file:Main.java
public static void makeFullScreen(Activity a) { a.requestWindowFeature(Window.FEATURE_NO_TITLE); a.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); }
From source file:Main.java
/** * Make fullscreen window//from ww w.j a v a 2 s .c om * @param activity */ public static void Fullscreen(Activity activity) { activity.requestWindowFeature(Window.FEATURE_NO_TITLE); activity.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); }
From source file:Main.java
/** * set no title and no status bar/* ww w. ja v a2s . c om*/ * * @param activity */ public static void setNoTitleAndNoStatusBarScreen(Activity activity) { activity.requestWindowFeature(Window.FEATURE_NO_TITLE); activity.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); }
From source file:Main.java
public static void hideTitleBar(Activity activity) { activity.requestWindowFeature(Window.FEATURE_NO_TITLE); }
From source file:Main.java
public static void setLayout(Activity context, int layout, int titleBar) { context.requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); context.setContentView(layout);//from www .j ava 2 s .co m context.getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, titleBar); }
From source file:Main.java
public static void setFullScreen(Activity activity) { activity.requestWindowFeature(Window.FEATURE_NO_TITLE); Window window = activity.getWindow(); WindowManager.LayoutParams params = window.getAttributes(); params.flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN; window.setAttributes(params);/* w w w . j a va2 s. com*/ window.addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS); }
From source file:Main.java
/** * Request the ActionBar window feature if we are on a supported Android * version. This should be called before the activity's setContentView. * * @param activity//ww w.ja v a2s . c o m */ @TargetApi(Build.VERSION_CODES.HONEYCOMB) public static void addActionBarIfSupported(Activity activity) { if (actionBarSupported()) { activity.requestWindowFeature(Window.FEATURE_ACTION_BAR); } }
From source file:Main.java
public static void setWindowFeature(Activity context, int windowFeature) { // context.requestWindowFeature(Window.FEATURE_NO_TITLE); context.requestWindowFeature(windowFeature); }