Chcę użyć zasobu w liczbie mnogiej do wygenerowania cytowanej liczby, takiej jak "9"
.getQuantityString nie zastępuje formatu wartością
W moim plurals.xml
:
<plurals name="posts">
<item quantity="other">\"%dd\"<\item>
</plurals>
Kod:
String text = res.getQuantityString(R.plurals.posts, meUser.postCount);
Gdy postCount
jest 9, dlaczego text
okazać się "%dd"
i nie "9"
?