如何制作whatsapp类型的动画以从工具栏打开菜单(动作栏) [英] How to make whatsapp type of animation for opening the menu from toolbar(actionbar)

查看:115
本文介绍了如何制作whatsapp类型的动画以从工具栏打开菜单(动作栏)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  1. 我最近更新了whatsapp,并注意到 单击工具栏上菜单项的动画.如何做到这一点 效果?
  2. 是否有任何开源项目可以实现这一目标?
  3. 我没有发布任何代码,因为.我不知道他们怎么样 它.
  1. I recently updated whatsapp and noticed the animation for menu item clicked on toolbar. How to achieve this effect?
  2. Are there any opensource projects to achieve this?
  3. I have not posted any code because. I have no clue how they are doing it.

快照1:在单击菜单中的附件按钮之前

Snapshot-1 : Before clicking the attachment button in menu

快照2:单击菜单中的附件按钮

Snapshot-2 : After clicking the attachment button in menu

推荐答案

似乎他们在pre-L设备中移植"了棒棒糖动画.最简单的方法是使用 Igvalle的Material-Animation 之类的库(请参阅#4).它的minSdk为16,但我希望您可以将其减小14以下.

Seems like they "ported" lollipop animation in pre-L devices. The simplest way to do this is using libraries like Igvalle's Material-Animation (see #4). Its minSdk is 16, but I hope you can decrease it for 14 or below.

其他一些库: TransitionsBackport PreLollipopTransition 过渡到处.

如果您创建此动画,请告诉我!

Please let me know if you create this animation!

这篇关于如何制作whatsapp类型的动画以从工具栏打开菜单(动作栏)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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