If you want to write percent (%), duplicate it:
<string name="percent">%1$d%%</string>
label.text = getString(R.string.percent, 75) // Output: 75%.
If you write simply %1$d%
, you will get the error: Format string 'percent' is not a valid format string so it should not be passed to String.format
.