How can I show the symbol "%" in my formatting string? I could do only this: <string name="progress">Current speed is %1$d %2$s</string>
and I got right output. Is there some way to show this symbol without second argument?
Asked
Active
Viewed 49 times
0
-
can you be more clear with your question – MAYANK SINGH Mar 15 '19 at 16:21
1 Answers
0
You just need to escape % with another %.
Example:
<string name="progress">Current speed is %d%%</string>

Warcello
- 418
- 7
- 13