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

Visibility

public abstract class Visibility
extends Transition

java.lang.Object
   ↳ android.support.transition.Transition
     ↳ android.support.transition.Visibility
Known Direct Subclasses


This transition tracks changes to the visibility of target views in the start and end scenes. Visibility is determined not just by the setVisibility(int) state of views, but also whether views exist in the current view hierarchy. The class is intended to be a utility for subclasses such as Fade, which use this visibility information to determine the specific animations to run when visibility changes occur. Subclasses should implement one or both of the methods onAppear(ViewGroup, TransitionValues, int, TransitionValues, int), onDisappear(ViewGroup, TransitionValues, int, TransitionValues, int) or onAppear(ViewGroup, View, TransitionValues, TransitionValues), onDisappear(ViewGroup, View, TransitionValues, TransitionValues).

Summary

Constants

int MODE_IN

Mode used in setMode(int) to make the transition operate on targets that are appearing.

int MODE_OUT

Mode used in setMode(int) to make the transition operate on targets that are disappearing.

Inherited constants

From class android.support.transition.Transition

Public constructors

Visibility()
Visibility(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