Android Pluralization not working, need help

前端 未结 3 677
情深已故
情深已故 2021-02-07 15:23

I\'ve been attempting to utilize the plurals resource with Android but have not had any luck.

Here is my resource file for my plurals:



        
3条回答
  •  心在旅途
    2021-02-07 15:58

    Same problem here! I guess it is just a flaw in the documentation. The "pure" getQuantitiyString(int, int) method does just get a text resource, without any formatting. As superfell stated: just use the getQuantityString(int, int, Object...) method and hand over your integer value twice.

    I'd hoped this worked the same way you did, but it simply doesn't!!

    PS: maybe check an answer as the correct one? ;-)

提交回复
热议问题