Code example for Layout

Methods: getLineCount, getLineTop

0
	private int getDesiredHeight(Layout layout) {
		if (layout == null) {
			return 0; 
		} 
 
		int linecount = layout.getLineCount();
		int desired = layout.getLineTop(linecount) - getItemOffset() * 2
				- getAdditionalItemHeight(); 
 
		// Check against our minimum height 
		desired = Math.max(desired, getSuggestedMinimumHeight());
 
		return desired;
	} 
 
	/** 
	 * Builds text depending on current value 
	 *  
	 * @return the text 
	 */ 
	private String buildText() {