FragmentAnimationProvider


public interface FragmentAnimationProvider

Known direct subclasses
GuidanceStylist

GuidanceStylist is used within a androidx.leanback.app.GuidedStepFragment to display contextual information for the decision(s) required at that step.

GuidedActionsStylist

GuidedActionsStylist is used within a androidx.leanback.app.GuidedStepFragment to supply the right-side panel where users can take actions.


FragmentAnimationProvider supplies animations for use during a fragment's onCreateAnimator callback. Animators added here will be added to an animation set and played together. This allows presenters used by a fragment to control their own fragment lifecycle animations.

Summary

Public methods

abstract void

Animates the fragment in response to the IME appearing.

abstract void

Animates the fragment in response to the IME disappearing.

Public methods

onImeAppearing

Added in 1.1.0
abstract void onImeAppearing(@NonNull List<Animator> animators)

Animates the fragment in response to the IME appearing.

Parameters
@NonNull List<Animator> animators

A list of animations to which this provider's animations should be added.

onImeDisappearing

Added in 1.1.0
abstract void onImeDisappearing(@NonNull List<Animator> animators)

Animates the fragment in response to the IME disappearing.

Parameters
@NonNull List<Animator> animators

A list of animations to which this provider's animations should be added.