Android string values formatting -
my name <b>%1$s</b> <string name="funky_format">my name <b>%1$s</b></string>
what lastly formatting mean?
the reason string looks funky it's doing both formatting , html. here's description of documentation, states:
sometimes may want create styled text resource used format string. normally, won't work because string.format(string, object...) method strip style info string. work-around write html tags escaped entities.
android
No comments:
Post a Comment