Code example for RelativeSizeSpan

0
 
			return spannable;
		} 
	} 
 
	public static CharSequence formatTerminusLetter(final Context context, final CharSequence text) {
		final SpannableString spannable = new SpannableString(text);
		spannable.setSpan(new AbsoluteSizeSpan(18, true), text.length() - 1, text.length(),
				Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
		return spannable;
	} 
 
	public static String formatMinutes(final Context context, final long millisecondes) {
		String delay = "";
		final int minutes = (int) (millisecondes / 60000);
 
		if (minutes < 60) {
			delay = context.getString(R.string.format_minutes, minutes);
		} else { 
			final int heures = minutes / 60;
			final int reste = minutes - heures * 60;