List of usage examples for android.app Activity getWindow
public Window getWindow()
From source file:Main.java
public static final void keepScreenOn(final Activity pActivity) { pActivity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); }
From source file:Main.java
public static int getStatusTitleBarHeight(Activity activity) { return activity.getWindow().findViewById(Window.ID_ANDROID_CONTENT).getTop(); }
From source file:Main.java
public static void keepScreenOn(final Activity pActivity) { pActivity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); }
From source file:Main.java
public static int getWindowHeight(Activity activity) { return activity.getWindow().getWindowManager().getDefaultDisplay().getHeight(); }
From source file:Main.java
public static int getWindowWidth(Activity activity) { return activity.getWindow().findViewById(Window.ID_ANDROID_CONTENT).getWidth(); }
From source file:Main.java
public static View getRootViewGroup(Activity activity) { return activity.getWindow().getDecorView().findViewById(android.R.id.content); }
From source file:Main.java
public static int getWindowContentHeight(Activity activity) { return activity.getWindow().findViewById(Window.ID_ANDROID_CONTENT).getHeight(); }
From source file:Main.java
private static void setStatusBarColor(Activity activity, int color) { activity.getWindow().setStatusBarColor(color); }
From source file:Main.java
public static int getTopBarHeight(Activity activity) { return activity.getWindow().findViewById(Window.ID_ANDROID_CONTENT).getTop(); }
From source file:Main.java
public static void setFullscreen(Activity paramActivity) { paramActivity.getWindow().setFlags(1024, 1024); }