Code example for Point

Methods: getSize

0
		Activity context = NXBridge.getInstance().getNativeContext();
		if(context == null){
			assert false : "Context is null"; 
		} 
		 
		Point size = new Point();
		((WindowManager) context.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getSize(size);
		return size.y;
	} 
	 
	@SuppressLint("NewApi") 
	public static final float getScreenVirtualHeight(){ 
		Activity context = NXBridge.getInstance().getNativeContext();
		if(context == null){
			assert false : "Context is null"; 
		} 
		 
		Point size = new Point();
		((WindowManager) context.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getSize(size);
		return pixelToVirtualPoint(size.y);
Contextual code suggestions in your IDE  Get Codota for Java