Since Labels don't have a background I put a Label inside a Rectangle.
Setting the label width and height to the ones of the Rectangle I can center the label vertically and horizontally just fine.
My problem is, that the text inside the label can be longer or shorter for different languages and thus horizontal centering won't work anymore.
Any idea how this can be done without setting the dimensions for each language.
<Rectangle
id="background"
color="0xFF0000FF"
width= "300"
height= "50"
opacity="1"
<Label
id = "label"
width = "300"
height = "50"
translation = "[0,0]"
horizAlign = "center"
vertAlign = "center"
text = "MY DYNAMIC TEXT"
color = "0xFFFFFFFF"
maxLines= "1"
wrap = "true"
numLines = "1"
font = "font:SmallestSystemFont"
/>
</Rectangle>