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) - ITEM_OFFSET * 2 - ADDITIONAL_ITEM_HEIGHT;
 
				// Check against our minimum height 
				desired = Math.max(desired, getSuggestedMinimumHeight());
 
				return desired;
			} 
 
		/** 
		 * Builds text depending on current value 
		 *  
		 * @return the text 
		 */ 
		private String buildText()
			{