Code example for Map

Methods: get

0
			int[] webviewLocation = new int[2];
			webView.getLocationOnScreen(webviewLocation);
			//center_x, center_y 
			//left, top, width, height 
			float center_x = translateCoordToScreen(webviewLocation[0], scale,
					rectangle.get("center_x"));
			float center_y = translateCoordToScreen(webviewLocation[1], scale,
					rectangle.get("center_y"));
									 
			float x = translateCoordToScreen(webviewLocation[0], scale, rectangle.get("left"));
			float y = translateCoordToScreen(webviewLocation[0], scale, rectangle.get("top"));
			Map<String,Object> result = new HashMap<String, Object>(rectangle);
			 
			result.put("x",x);
			result.put("y",y);
			result.put("center_x",center_x);
			result.put("center_y",center_y);
			 
			return result;