问题
Based on this tutorial, https://github.com/saulmm/CoordinatorBehaviorExample,I am trying to create an application which have a circle image that scrolls up to the Right of Toolbar and when scrolling down goes to the middle of the expanded AppBarLayout.
How to make it move to right of Toolbar with above mentiond behaviour and animation.
回答1:
AppBarTranslateScaleBehavior will help you achieve such a behavior.
来源:https://stackoverflow.com/questions/44398208/coordinatorlayout-custom-behavior-at-right-of-toolbar-with-appbarlayout