Code example for RelativeSizeSpan

0
	public void setInsignificantRelativeSize(final float insignificantRelativeSize)
	{ 
		if (insignificantRelativeSize != 1)
		{ 
			this.prefixRelativeSizeSpan = new RelativeSizeSpan(insignificantRelativeSize);
			this.insignificantRelativeSizeSpan = new RelativeSizeSpan(insignificantRelativeSize);
		} 
		else 
		{ 
			this.prefixRelativeSizeSpan = null;
			this.insignificantRelativeSizeSpan = null;
		} 
	} 
 
	@Override 
	protected void onFinishInflate() 
	{ 
		super.onFinishInflate(); 
 
		setPrefixColor(getResources().getColor(R.color.fg_less_significant));
		setInsignificantRelativeSize(0.85f);