Transition.EpicenterCallback
public static abstract class Transition.EpicenterCallback
extends Object
获得过渡中心的类。 使用setEpicenterCallback(android.transition.Transition.EpicenterCallback)设置用于计算转场震中的回调。 覆盖getEpicenter()以返回转场震中的屏幕坐标中的矩形区域。
摘要(Summary)
Public constructors
Transition.EpicenterCallback
Transition.EpicenterCallback ()
公共方法(Public methods)
onGetEpicenter
Rect onGetEpicenter (Transition transition)
实施者必须覆盖以在屏幕坐标中返回过渡的震中。 像Explode这样的Explode依赖于过渡的震中。 在爆炸中,视图沿着震中与视图中心之间的矢量向着或远离震中Rect的中心移动或消失。 一些过渡,如Fade不注意震中。
| 参数(Parameters) |
transition |
Transition: The transition for which the epicenter applies. |
| 返回(Returns) |
Rect |
The Rect region of the epicenter of transition or null if there is no epicenter. |