Code example for RelativeSizeSpan

0
			delay = context.getString(R.string.format_minutes, minutes);
		} else { 
			final int heures = minutes / 60;
			final int reste = minutes - heures * 60;
			delay = context.getString(R.string.format_heures, heures, (reste < 10) ? "0" + reste : reste);
		} 
 
		return delay;
	} 
 
	public static String formatMetres(final Context context, final double metres) {
		String result = "";
 
		if (metres < 1000) {
			result = context.getString(R.string.format_metres, Math.round(metres));
		} else { 
			result = context.getString(R.string.format_km, metres / 1000);
		} 
 
		return result;
	}