问题描述
我要复制的转换由谷歌在材料设计说明。这是link为preVIEW ,但基本上我所关心的视频是这两个:
I want to replicate the transitions as explained in Material design by Google.This is the link for the preview, but basically the videos I care about are those two:
- http://material-design.storage.googleapis.com/videos/animations-meaningfultransitions-hierarchical_transitions_topLevel_large_xhdpi.webm
- http://material-design.storage.googleapis.com/videos/animation-meaningfultransitions-view_contact_large_xhdpi.webm
- http://material-design.storage.googleapis.com/videos/animations-meaningfultransitions-hierarchical_transitions_topLevel_large_xhdpi.webm
- http://material-design.storage.googleapis.com/videos/animation-meaningfultransitions-view_contact_large_xhdpi.webm
我的问题是什么是UI的容器?这是一个新的活动其中的onCreate有动画的每个元素或者是它的片段?
My question is what is the container of the UI? Is this a new Activity which onCreate has animations for each element or is it a fragment?
在特定的第二个例子有对第一活动一些运动,从而onClick的里面有一个动画其中还创建了一个第二活动? (请注意,所点的名称也移动,所以这应该不是一个新的活动)
In particular on the second example there is some movement on the 1st Activity so inside the onClick is there an animation which also creates a 2nd activity? (note that the clicked name also moves, so this should not be a new activity)
在换句话说布局(+活动,片段)应该是什么,如果我想复制这个?
In other words what the layout (+Activities, fragments) should be if I want to replicate this?
推荐答案
也许为时已晚,但我已经找到支持库包含 ActivityOptionsCompat
http://developer.android.com/intl/ru/reference/android/support/v4/app/package-summary.html它包含了类似规模达动画活性动画。希望这有助于)
Maybe too late but I have found support library contains ActivityOptionsCompat
http://developer.android.com/intl/ru/reference/android/support/v4/app/package-summary.htmlIt is contains activity animations like scale up animations. Hope this helps)
这篇关于Android的材料设计过渡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!