简体   繁体   English

展开Goog​​le卡

[英]Expand Google Cards

I want to implement something like this. 我想实现这样的事情。 On tapping on a card, it should expand to show more details. 点击卡片时,卡片应展开以显示更多详细信息。 I don't want any code but just some guide on how to go about implementing it. 我不需要任何代码,而只是一些有关如何实现它的指南。 The transition should be smooth as in Google apps. 过渡应该像在Google应用中一样平稳。

在此处输入图片说明

The way to recreate something like that, is to use shared element transitions. 重新创建类似内容的方法是使用共享元素过渡。

Basically what this does, is connecting views between to layouts and when it switches layouts, the shared elements (views) are animated from the original position and size, to the final position and size of the other layout, creating a smooth transition between layouts. 基本上,这是将视图之间连接到布局,并在切换布局时将共享元素(视图)从原始位置和大小动画化为另一个布局的最终​​位置和大小,从而在布局之间实现平滑过渡。

For a more in depth explanation on shared element transitions look over here . 有关共享元素转换的更深入的说明,请查看此处

There is also a great Udacity course on Material Design, covering all these kind of animations and concepts in the form of short videos. 还有一本关于材料设计的Udacity精品课程 ,以短片形式涵盖所有这些动画和概念。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM