Code example for AbsoluteSizeSpan

0
	 * @param starIndex 
	 * @param endIndex 
	 */ 
	public void getAbsoluteSizeSpan(SpannableString spannableString, int pixel,
			int starIndex, int endIndex) {
		spannableString.setSpan(new AbsoluteSizeSpan(pixel), starIndex,
				endIndex, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
	} 
 
	/** 
	 * 设置绝对字体大小(单位:像素), flag为ture,表示前面的字体大小单位为dip,flase字体大小单位为像素 
	 *  
	 * @param spannableString 
	 * @param pixel 
	 * @param flag 
	 * @param starIndex 
	 * @param endIndex 
	 */ 
	public void getAbsoluteSizeSpan(SpannableString spannableString, int pixel,
			boolean flag, int starIndex, int endIndex) {
		spannableString.setSpan(new AbsoluteSizeSpan(pixel, flag), starIndex,