Google 致力于为黑人社区推动种族平等。查看具体举措


open class Slide : 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.

<init>(slideEdge: Int)

Constructor using the provided slide edge direction.

<init>(@NonNull context: Context, @NonNull attrs: AttributeSet)

Public methods
open Unit
captureEndValues(@NonNull transitionValues: TransitionValues)

open Unit
captureStartValues(@NonNull transitionValues: TransitionValues)

open Int

Returns the edge that Views appear and disappear from.

open Animator?
onAppear(sceneRoot: ViewGroup!, view: View!, startValues: TransitionValues!, endValues: 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.

Inherited functions