Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想实现这样的东西。在点击卡片时,它应该展开以显示更多详细信息。我不想要任何代码,只想要一些关于如何实现它的指南。过渡应该像在 Google 应用程序中一样顺利。
重新创建类似内容的方法是使用共享元素转换。
基本上,它的作用是将视图连接到布局之间,当它切换布局时,共享元素(视图)会从原始位置和大小动画到另一个布局的最终位置和大小,从而在布局之间创建平滑过渡。
有关共享元素转换的更深入解释,请查看此处。
Udacity还有一个很棒的 Material Design 课程,以短视频的形式涵盖了所有这些类型的动画和概念。