List of usage examples for android.app Activity getWindowManager
public WindowManager getWindowManager()
From source file:Main.java
private static int getDisplayWidth(Activity activity) { Display display = activity.getWindowManager().getDefaultDisplay(); return display.getWidth(); }
From source file:Main.java
public static int getDisplayHeight(Activity context) { int Windowwidth = context.getWindowManager().getDefaultDisplay().getHeight(); return Windowwidth; }
From source file:Main.java
public static int getScreenWidth(Activity activity) { Display display = activity.getWindowManager().getDefaultDisplay(); return display.getWidth(); // deprecated }
From source file:Main.java
public static int getWidthScreen(Activity activity) { Display display = activity.getWindowManager().getDefaultDisplay(); Point size = new Point(); display.getSize(size);//from w w w . j av a 2 s .c o m return size.x; }
From source file:Main.java
public static Point getDispalySize(Activity activity) { Display display = activity.getWindowManager().getDefaultDisplay(); final Point size = new Point(); display.getSize(size);/* w w w . jav a 2s . c o m*/ return size; }
From source file:Main.java
public static int getDeviceWidth(Activity activity) { Display display = activity.getWindowManager().getDefaultDisplay(); Point size = new Point(); display.getSize(size);/*from ww w . j a v a2s.com*/ return size.x; }
From source file:Main.java
public static Point getScreenSize(final Activity a) { Display display = a.getWindowManager().getDefaultDisplay(); Point size = new Point(); display.getSize(size);//from w w w. j a v a2s. c o m return size; }
From source file:Main.java
public static int getDeviceHeight(Activity activity) { Display display = activity.getWindowManager().getDefaultDisplay(); Point size = new Point(); display.getSize(size);//from ww w.jav a2s. co m return size.y; }
From source file:Main.java
public static int getDisplayWidth(Activity activity) { Display display = activity.getWindowManager().getDefaultDisplay(); Point size = new Point(); display.getSize(size);// ww w. j av a 2 s .c o m return size.x; }
From source file:Main.java
public static Point getScreenDimensions(Activity activity) { Display display = activity.getWindowManager().getDefaultDisplay(); Point size = new Point(); display.getSize(size);/*from w w w. j a va 2 s .c o m*/ return size; }