I am developing an app where I need to show a count. This count is going to show for example a “4”, then a “4 + 1”, then finally a “5”. I have .png images that I want to use as background to the numbers, so that I can easily show anything up to “99” if I need to.
So basically, I would like to assign a drawable background to a number. Is a custom font the way to go? Here typeface and view group with assigned strings is mentioned. Anyone tried this?
Actually you just need an array of size 10:
and to get them just use:
If the number has 2 digits then you can put in 2 pictures etc.
You can also make a very big array, but that would honestly be a waste of lines.
Also the space required when you only use 10 pictures is significantly smaller