Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sample not play in the center of screen #1

Open
Coder-DanielHan opened this issue Oct 19, 2015 · 5 comments
Open

sample not play in the center of screen #1

Coder-DanielHan opened this issue Oct 19, 2015 · 5 comments

Comments

@Coder-DanielHan
Copy link

qq 20151019233212

@elevenetc
Copy link
Owner

@Coder-DanielHan It seems your screenshot shows not initial state of the sample animation. Which one of the words is not is the center?

@Coder-DanielHan
Copy link
Author

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?
qq 20151027111907

@elevenetc
Copy link
Owner

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)

@Coder-DanielHan
Copy link
Author

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.

@AniketBito
Copy link

How can I set default gravity as left? I don't want the text to be in centre?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants