List of usage examples for android.view Window FEATURE_NO_TITLE
int FEATURE_NO_TITLE
To view the source code for android.view Window FEATURE_NO_TITLE.
Click Source Link
From source file:Main.java
public static void asFullScreen(Activity activity) { activity.requestWindowFeature(Window.FEATURE_NO_TITLE); activity.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); }
From source file:Main.java
/** * Make fullscreen window//from w ww. j a va 2 s. c o m * @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//from w w w . ja v a 2 s. c o m * * @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 requestFullscreen(final Activity pActivity) { final Window window = pActivity.getWindow(); window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); window.clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN); window.requestFeature(Window.FEATURE_NO_TITLE); }
From source file:Main.java
public static void requestFullscreen(final Activity mActivity) { final Window window = mActivity.getWindow(); window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); window.clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN); window.requestFeature(Window.FEATURE_NO_TITLE); }
From source file:Main.java
public static ProgressDialog showProgressDialog(Context context) { ProgressDialog myProgressDialog = new ProgressDialog(context); myProgressDialog.setMessage("Please wait..."); myProgressDialog.requestWindowFeature(Window.FEATURE_NO_TITLE); myProgressDialog.show();//from w ww . ja va2s . co m myProgressDialog.setCancelable(false); myProgressDialog.setOnKeyListener(new DialogInterface.OnKeyListener() { public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_SEARCH && event.getRepeatCount() == 0) { return true; } return false; } }); return myProgressDialog; }
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
public static void setWindowNoTitle(Activity context) { setWindowFeature(context, Window.FEATURE_NO_TITLE); }
From source file:Main.java
public static void hideTitleBar(Activity activity) { activity.requestWindowFeature(Window.FEATURE_NO_TITLE); }
From source file:Main.java
public static Dialog creativeDialog(Context context, int layout) { Dialog dialog = new Dialog(context, android.R.style.Theme_Holo_Light_Dialog); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); dialog.setContentView(layout);//from w ww. ja va 2s .co m return dialog; }