Most visited

Recently visited

Added in API level 21

Transition.EpicenterCallback

public static abstract class Transition.EpicenterCallback
extends Object

java.lang.Object
   ↳ android.transition.Transition.EpicenterCallback


获得过渡中心的类。 使用setEpicenterCallback(android.transition.Transition.EpicenterCallback)设置用于计算转场震中的回调。 覆盖getEpicenter()以返回转场震中的屏幕坐标中的矩形区域。

也可以看看:

Summary

Public constructors

Transition.EpicenterCallback()

Public methods

abstract Rect onGetEpicenter(Transition transition)

实施者必须覆盖以在屏幕坐标中返回过渡的震中。

Inherited methods

From class java.lang.Object

Public constructors

Transition.EpicenterCallback

Added in API level 21
Transition.EpicenterCallback ()

Public methods

onGetEpicenter

Added in API level 21
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.

Hooray!