Code example for View

Methods: measure

0
	} 
 
	public void forceChildLayout( final View child, final LayoutParams params ) {
		int childHeightSpec = ViewGroup.getChildMeasureSpec( mHeightMeasureSpec, getPaddingTop() + getPaddingBottom(), params.height );
		int childWidthSpec = ViewGroup.getChildMeasureSpec( mWidthMeasureSpec, getPaddingLeft() + getPaddingRight(), params.width );
		child.measure( childWidthSpec, childHeightSpec );
	} 
 
	/** 
	 * Gets the real height. 
	 *  
	 * @return the real height 
	 */ 
	@SuppressWarnings("unused") 
	private int getRealHeight() { 
		return getHeight() - ( getPaddingTop() + getPaddingBottom() );
	} 
 
	/** 
	 * Gets the real width.