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

Title at horizontally center in FlexibleSpaceToolbarScrollViewActivity #279

Open
toton6868 opened this issue Apr 19, 2018 · 0 comments
Open

Comments

@toton6868
Copy link

I am trying to integrate the FlexibleSpaceToolbarScrollViewActivity functionality in my app. I want to make the toolbar title gravity will be horizontally center when the page load and when translate ends the title will be at the same place according to current tutorial/example. I think the following codes are placing the title from start to end.

ViewHelper.setPivotX(mTitleView, 0);
ViewHelper.setPivotY(mTitleView, 0);
ViewHelper.setScaleX(mTitleView, 1 + scale);
ViewHelper.setScaleY(mTitleView, 1 + scale);

Is it possible to make the title at the fixed center aligned position?

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

1 participant