public class Slide
extends Visibility

   ↳ androidx.transition.Transition
     ↳ androidx.transition.Visibility
       ↳ androidx.transition.Slide

This transition tracks changes to the visibility of target views in the start and end scenes and moves views in or out from one of the edges of the scene. Visibility is determined by both the View.setVisibility(int) state of the view as well as whether it is parented in the current view hierarchy. Disappearing Views are limited as described in Visibility.onDisappear(android.view.ViewGroup, TransitionValues, int, TransitionValues, int).


Inherited constants

Public constructors


Constructor using the default Gravity.BOTTOM slide edge direction.

Slide(int slideEdge)

Constructor using the provided slide edge direction.

Slide(Context context, AttributeSet attrs)

Public methods

void captureEndValues(TransitionValues transitionValues)

Captures the values in the end scene for the properties that this transition monitors.

void captureStartValues(TransitionValues transitionValues)