vendredi 16 janvier 2015

Displaying an Animation on top of an ImageView

Currently I am working on a part of my app that has an ImageView that is a building. Depending on the user's level, a random number is chosen as a hitpoint total this is taken from the health of the building.


For example, if the user has a level of 1, a random number between 0 and 10, called "hitpoints" is generated. My question is what would be the best way to display an animation of this random number over the ImageView?


I was thinking before that I could just create multiple images of the buildings all with a different number displayed on top of them but this would require me to make about 50 copies of the images and that would take up too much space.


So, is there a way to just display a small animation on top of my ImageView that I can just plug this random value into?


Thanks for any help.





Aucun commentaire:

Enregistrer un commentaire