I have a
Table and a
Label with wrapped text.
I want to display some images in-line with the text. For example:
This is an image -IMAGE_HERE-, and now some more text showing, yet, another image -IMAGE_HERE-.
I tried using one
Label containing all the text and spaces for the images, then draw the sprites. However, I can't get the locations I should draw the sprite in to fill those spaces. I could hard-code the values, but they'll vary per device. I also tried adding multiple labels with images between, but that didn't work out either.
Is there a way of fixing this, say by calculating words' widths? Is it possible to have text with inline images in a
if you are wondering why I'm using a
Label text should fit on screen regardless of device resolution. I've found a
Table helps with this: I just set
size and it works.