In my previous post, I showed you how to set string plurals. If you noticed, the methods to get the plurals strings only accept
ints. What if (like me) you want to display a decimal value? I am getting my raw value from a progress bar with a range of 1-10, with 0.1 increments.
Last week, I discovered Android’s support for plural strings by accident. And a good accident it was since I am working on an app that will display a float to the user. I used to display:
When trying to import an existing Android project to Eclipse, I always encounter the error:
The method *XXXXX* must override a superclass method.
<img src=http://www.despicable.me/pops/minionMaker/userpics/910156207.jpg width=”380” height=”473” alt=”I’ve created a Minion to join Gru’s Minion army.” />
Sooner or later, you would want to display a message to your user with dynamic content. This may be the number of results, the user’s name, etc.
I was thinking of starting a quick-tips style blog for software development (mostly for myself, since I tend to forget stuff a lot recently).