TextSurface
TextSurface copied to clipboard
sample not play in the center of screen
@Coder-DanielHan It seems your screenshot shows not initial state of the sample animation. Which one of the words is not is the center?
My screenshot is the end of the sample animation.Which function determines the relative position of the Text to the screen.I noticed that you setPosition to the textDaai,but it's not working?
It's working. TextBuilder
creates initial state of objects(Texts
). So at the beginning of animation textDaai
locates in the center of screen. And for example textBraAnies
instance locates at the bottom of textDaai
:
///...
.setPosition(Align.BOTTOM_OF, textDaai).build()
Then you translate canvas/surface
by creating animation:
new TransSurface(500, textBraAnies, Pivot.CENTER)
But in my genymotion,at the beginning of the animation,textDaai is out of the screen.And then it moves from the right-bottom corner.
How can I set default gravity as left? I don't want the text to be in centre?