-
public class TransformationCompatHelper for accessing features in starting activities with transformation animation.
-
-
Field Summary
Fields Modifier and Type Field Description public final static TransformationCompatINSTANCE
-
Method Summary
Modifier and Type Method Description final static UnitstartActivity(TransformationLayout transformationLayout, Intent intent)Invalidate the activity's options menu, if able. final static UnitstartActivityForResult(TransformationLayout transformationLayout, Intent intent, Integer requestCode)Start new activity with options, if able, for which you would like a result when it finished. final static UnitonTransformationEndContainerApplyParams(Activity activity)After starts a new activity by using startActivity or startActivityForResult in TransformationCompat, apply the TransformationLayout.Params on an Activity. final static UnitonTransformationStartContainer(Activity activity)sets an exit shared element callback to activity for implementing shared element transition. final static UnitonTransformationStartContainer(Fragment fragment)sets an exit shared element callback to fragment for implementing shared element transition. final static UnitonTransformationEndContainer(Activity activity, TransformationLayout.Params params)sets an enter shared element callback to activity for implementing shared element transition. final static UnitonTransformationEndContainer(Fragment fragment, TransformationLayout.Params params)sets an enter shared element callback to fragment for implementing shared element transition. final static UnitaddTransformation(FragmentTransaction fragmentTransaction, TransformationLayout transformationLayout, String transitionName)adds a shared element transformation to FragmentTransaction. -
-
Method Detail
-
startActivity
final static Unit startActivity(TransformationLayout transformationLayout, Intent intent)
Invalidate the activity's options menu, if able.
-
startActivityForResult
final static Unit startActivityForResult(TransformationLayout transformationLayout, Intent intent, Integer requestCode)
Start new activity with options, if able, for which you would like a result when it finished.
-
onTransformationEndContainerApplyParams
final static Unit onTransformationEndContainerApplyParams(Activity activity)
After starts a new activity by using startActivity or startActivityForResult in TransformationCompat, apply the TransformationLayout.Params on an Activity.
-
onTransformationStartContainer
final static Unit onTransformationStartContainer(Activity activity)
sets an exit shared element callback to activity for implementing shared element transition.
-
onTransformationStartContainer
final static Unit onTransformationStartContainer(Fragment fragment)
sets an exit shared element callback to fragment for implementing shared element transition.
-
onTransformationEndContainer
final static Unit onTransformationEndContainer(Activity activity, TransformationLayout.Params params)
sets an enter shared element callback to activity for implementing shared element transition.
-
onTransformationEndContainer
final static Unit onTransformationEndContainer(Fragment fragment, TransformationLayout.Params params)
sets an enter shared element callback to fragment for implementing shared element transition.
-
addTransformation
final static Unit addTransformation(FragmentTransaction fragmentTransaction, TransformationLayout transformationLayout, String transitionName)
adds a shared element transformation to FragmentTransaction.
-
-
-
-