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

Set alignment is not work #21

Closed
jack24254029 opened this issue Jan 31, 2018 · 2 comments
Closed

Set alignment is not work #21

jack24254029 opened this issue Jan 31, 2018 · 2 comments

Comments

@jack24254029
Copy link

jack24254029 commented Jan 31, 2018

I use library 1.2.0.
The alignment always is ALIGN_NORMAL
This is my code.
screenshot_20180131-103849

And I see the setTextAppearance(context, resId) in website , but I can't use in TextLayoutBuilder.

Thank you.

@jack24254029 jack24254029 changed the title Set alignment center is not work Set alignment is not work Jan 31, 2018
@xiphirx
Copy link
Contributor

xiphirx commented Jan 31, 2018

I don't think that the alignment isn't working, but rather your text layout's width is the exact width of the text, so there's nothing to center. If you increase the width of your layout, then you should see that it is aligned properly.

@jack24254029
Copy link
Author

I got it.
Thank you.

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

2 participants