Code example for RelativeSizeSpan

0
					sb.append(num);
				} 
			} 
		} 
		int length = num.length();
		sb.setSpan(new RelativeSizeSpan((float) 0.5), sb.length() - length, sb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
		sb.setSpan(new ForegroundColorSpan(Color.RED), sb.length() - length, sb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
		sb.setSpan(new SuperscriptSpan(), sb.length() - length, sb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
 
	} 
	 
	public void markBoundary() { 
		boundaries.add(sb.length());
	} 
	 
//	public void setSwordVerseNum(String num) { 
//		if (num != null) { 
//			sb.append(' ' + num); 
//			int length = num.length(); 
//			sb.setSpan(new AbsoluteSizeSpan(12), sb.length() - length, sb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); 
//			sb.setSpan(new ForegroundColorSpan(Color.RED), sb.length() - length, sb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);