added in version 26.1.0
belongs to Maven artifact com.android.support:transition:28.0.0-alpha1

Slide

public class Slide
extends Visibility

java.lang.Object
   ↳ android.support.transition.Transition
     ↳ android.support.transition.Visibility
       ↳ android.support.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 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 onDisappear(android.view.ViewGroup, TransitionValues, int, TransitionValues, int).

Summary

Inherited constants

From class android.support.transition.Visibility
From class android.support.transition.Transition

Public constructors

Slide()

Constructor using the default 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)

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

int getSlideEdge()

Returns the edge that Views appear and disappear from.

Animator onAppear(ViewGroup sceneRoot, View view, TransitionValues startValues, TransitionValues endValues)

The default implementation of this method returns a null Animator.

Animator onDisappear(ViewGroup sceneRoot, View view, TransitionValues startValues, TransitionValues endValues)

The default implementation of this method returns a null Animator.

void setSlideEdge(int slideEdge)

Change the edge that Views appear and disappear from.

Inherited methods

From class android.support.transition.Visibility
From class android.support.transition.Transition