ksoichiro / Android-ObservableScrollView

Android library to observe scroll events on scrollable views.
http://ksoichiro.github.io/Android-ObservableScrollView/
Apache License 2.0
9.65k stars 2.06k forks source link

Title at horizontally center in FlexibleSpaceToolbarScrollViewActivity #279

Open toton6868 opened 6 years ago

toton6868 commented 6 years ago

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?