ksoichiro/Android-ObservableScrollView

Title at horizontally center in FlexibleSpaceToolbarScrollViewActivity

toton6868 opened this issue · 0 comments

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?