formatSpanned

Version of String.format that works on Spanned strings to preserve rich text formatting. Both the format as well as any %s args can be Spanned and will have their formatting preserved. Due to the way Spannables work, any argument's spans will can only be included once in the result. Any duplicates will appear as text only.

Return

the formatted string (with spans).

Parameters

this

@formatSpanned the format string (see java.util.Formatter.format)

args

the list of arguments passed to the formatter. If there are more arguments than required by format, additional arguments are ignored.