Code example for View

Methods: getLocationOnScreen

0
	 *            any view which is attached to the content 
	 *  
	 * @return location pixel 
	 */ 
	public static Point getScreenLocation(View view) {
		view.getLocationOnScreen(mLocation);
		return new Point(mLocation[0], mLocation[1]);
	} 
	 
	/** 
	 * Get location of view relative to application content (so no status bar and title bar).<br> 
	 * <br> 
	 * <b>Note</b>: Call this when content is completely inflated. So {@code onCreate} of an 
	 * activity won't work. 
	 *  
	 * @param view 
	 *            any view which is attached to the content 
	 *  
	 * @return location pixel 
	 */ 
Experience pair programming with AI  Get Codota for Java