具有AppBarLayout的工具栏右侧的CoordinatorLayout自定义行为 [英] CoordinatorLayout custom behavior at right of Toolbar with AppBarLayout

查看:190
本文介绍了具有AppBarLayout的工具栏右侧的CoordinatorLayout自定义行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据本教程 https://github.com/saulmm/CoordinatorBehaviorExample ,我是尝试创建一个具有圆形图像的应用程序,该图像向上滚动到工具栏的右侧,向下滚动到展开的AppBarLayout的中间.

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.

推荐答案

AppBarTranslateScaleBehavior 将帮助您实现这样的行为.

AppBarTranslateScaleBehavior will help you achieve such a behavior.

这篇关于具有AppBarLayout的工具栏右侧的CoordinatorLayout自定义行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆