Slide

open class Slide : Visibility
kotlin.Any
   ↳ 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).

Summary

Inherited constants
Public constructors

Constructor using the default Gravity#BOTTOM slide edge direction.

<init>(slideEdge: Int)

Constructor using the provided slide edge direction.

<init>(context: Context!, attrs: AttributeSet!)

Public methods
open Int

Returns the edge that Views appear and disappear from.

open Unit
captureStartValues(@NonNull transitionValues: TransitionValues)

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

open Unit
setSlideEdge(slideEdge: Int)

Change the edge that Views appear and disappear from.

open Unit
captureEndValues(@NonNull transitionValues: TransitionValues)

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

Inherited functions

Public constructors

<init>

Slide()

Constructor using the default Gravity#BOTTOM slide edge direction.

<init>

Slide(slideEdge: Int)

Constructor using the provided slide edge direction.

<init>

Slide(context: Context!, attrs: AttributeSet!)

Public methods

getSlideEdge

open fun getSlideEdge(): Int

Returns the edge that Views appear and disappear from.

Return
Int: the edge of the scene to use for Views appearing and disappearing. One of android.view.Gravity#LEFT, android.view.Gravity#TOP, android.view.Gravity#RIGHT, android.view.Gravity#BOTTOM, android.view.Gravity#START, android.view.Gravity#END.

captureStartValues

open fun captureStartValues(@NonNull transitionValues: TransitionValues): Unit

onDisappear

open fun onDisappear(sceneRoot: ViewGroup!, view: View!, startValues: TransitionValues!, endValues: TransitionValues!): Animator!

setSlideEdge

open fun setSlideEdge(slideEdge: Int): Unit

Change the edge that Views appear and disappear from.

Parameters
slideEdge Int: The edge of the scene to use for Views appearing and disappearing. One of android.view.Gravity#LEFT, android.view.Gravity#TOP, android.view.Gravity#RIGHT, android.view.Gravity#BOTTOM, android.view.Gravity#START, android.view.Gravity#END.

captureEndValues

open fun captureEndValues(@NonNull transitionValues: TransitionValues): Unit

onAppear

open fun onAppear(sceneRoot: ViewGroup!, view: View!, startValues: TransitionValues!, endValues: TransitionValues!): Animator!