CoordinatorLayout custom behavior at right of Toolbar with AppBarLayout

旧时模样 提交于 2019-12-24 06:18:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!