List of usage examples for android.view Window ID_ANDROID_CONTENT
int ID_ANDROID_CONTENT
To view the source code for android.view Window ID_ANDROID_CONTENT.
Click Source Link
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 int getTopBarHeight(Activity activity) { return activity.getWindow().findViewById(Window.ID_ANDROID_CONTENT).getTop(); }
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 int getWindowContentHeight(Activity activity) { return activity.getWindow().findViewById(Window.ID_ANDROID_CONTENT).getHeight(); }
From source file:Main.java
public static int getAppHeight(Context context) { return ((Activity) context).getWindow().findViewById(Window.ID_ANDROID_CONTENT).getMeasuredHeight(); }
From source file:Main.java
public static int getTitleHeight(Activity activity) { return activity.getWindow().findViewById(Window.ID_ANDROID_CONTENT).getTop(); }
From source file:Main.java
public static int getWindowHeight(Activity activity) { Rect out = new Rect(); activity.getWindow().findViewById(Window.ID_ANDROID_CONTENT).getHitRect(out); return out.height(); }
From source file:Main.java
public static int getTitleBarHeight(Context context) { int height = ((Activity) context).getWindow().findViewById(Window.ID_ANDROID_CONTENT).getTop(); if (height == 0) { return 0; }//w w w . ja v a2 s .com return height - getStatusBarHeight(context); }
From source file:Main.java
public static int $titleBarHeight(Activity activity) { int contentTop = activity.getWindow().findViewById(Window.ID_ANDROID_CONTENT).getTop(); int titleBarHeight = contentTop - getStatusHeight(activity); return titleBarHeight; }
From source file:Main.java
public static Rect getAppWrapWidthHeight(Activity activity) { Rect appWrapRect = new Rect(); activity.getWindow().findViewById(Window.ID_ANDROID_CONTENT).getDrawingRect(appWrapRect); return appWrapRect; }