Stay organized with collections
Save and categorize content based on your preferences.
VisibilityAnimatorProvider
public
interface
VisibilityAnimatorProvider
com.google.android.material.transition.platform.VisibilityAnimatorProvider
|
Known indirect subclasses
|
An interface which is able to provide an Animator to be supplied to a Visibility
transition when a target view is appearing or disappearing.
Summary
Public methods |
abstract
Animator
|
createAppear(ViewGroup sceneRoot, View view)
Should return an Animator that animates in the appearing target view .
|
abstract
Animator
|
createDisappear(ViewGroup sceneRoot, View view)
Should return an Animator that animates out the disappearing target view .
|
Public methods
createAppear
public abstract Animator createAppear (ViewGroup sceneRoot,
View view)
Should return an Animator that animates in the appearing target view
.
Parameters |
sceneRoot |
ViewGroup : The root of the transition hierarchy, which can be useful for checking
configurations such as RTL |
view |
View : The view that is appearing
|
createDisappear
public abstract Animator createDisappear (ViewGroup sceneRoot,
View view)
Should return an Animator that animates out the disappearing target view
.
Parameters |
sceneRoot |
ViewGroup : The root of the transition hierarchy, which can be useful for checking
configurations such as RTL |
view |
View : The view that is disappearing
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# VisibilityAnimatorProvider\n\nSummary: [Methods](#pubmethods) \n\nVisibilityAnimatorProvider\n==========================\n\n\n`\npublic\n\n\ninterface\nVisibilityAnimatorProvider\n`\n\n\n`\n\n\n`\n\n|----------------------------------------------------------------------------|\n| com.google.android.material.transition.platform.VisibilityAnimatorProvider |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [FadeProvider](/reference/com/google/android/material/transition/platform/FadeProvider), [FadeThroughProvider](/reference/com/google/android/material/transition/platform/FadeThroughProvider), [ScaleProvider](/reference/com/google/android/material/transition/platform/ScaleProvider), [SlideDistanceProvider](/reference/com/google/android/material/transition/platform/SlideDistanceProvider) |-----------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [FadeProvider](/reference/com/google/android/material/transition/platform/FadeProvider) | A class that configures and is able to provide an [Animator](/reference/android/animation/Animator) that fades a view. | | [FadeThroughProvider](/reference/com/google/android/material/transition/platform/FadeThroughProvider) | A class that configures and is able to provide an [Animator](/reference/android/animation/Animator) that fades out or in a view. | | [ScaleProvider](/reference/com/google/android/material/transition/platform/ScaleProvider) | A class that configures and is able to provide an [Animator](/reference/android/animation/Animator) that scales a view. | | [SlideDistanceProvider](/reference/com/google/android/material/transition/platform/SlideDistanceProvider) | A class that can configure and create an [Animator](/reference/android/animation/Animator) that slides a view vertically or horizontally slide over a specific distance. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn interface which is able to provide an Animator to be supplied to a [Visibility](/reference/android/transition/Visibility) transition when a target view is appearing or disappearing.\n\nSummary\n-------\n\n| ### Public methods ||\n|----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract Animator` | ` `[createAppear](/reference/com/google/android/material/transition/platform/VisibilityAnimatorProvider#createAppear(android.view.ViewGroup,%20android.view.View))`(ViewGroup sceneRoot, View view) ` Should return an Animator that animates in the appearing target `view`. |\n| ` abstract Animator` | ` `[createDisappear](/reference/com/google/android/material/transition/platform/VisibilityAnimatorProvider#createDisappear(android.view.ViewGroup,%20android.view.View))`(ViewGroup sceneRoot, View view) ` Should return an Animator that animates out the disappearing target `view`. |\n\nPublic methods\n--------------\n\n### createAppear\n\n```\npublic abstract Animator createAppear (ViewGroup sceneRoot, \n View view)\n```\n\nShould return an Animator that animates in the appearing target `view`.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------|\n| `sceneRoot` | `ViewGroup`: The root of the transition hierarchy, which can be useful for checking configurations such as RTL \u003cbr /\u003e |\n| `view` | `View`: The view that is appearing \u003cbr /\u003e |\n\n| Returns ||\n|------------|--------|\n| `Animator` | \u003cbr /\u003e |\n\n### createDisappear\n\n```\npublic abstract Animator createDisappear (ViewGroup sceneRoot, \n View view)\n```\n\nShould return an Animator that animates out the disappearing target `view`.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------|\n| `sceneRoot` | `ViewGroup`: The root of the transition hierarchy, which can be useful for checking configurations such as RTL \u003cbr /\u003e |\n| `view` | `View`: The view that is disappearing \u003cbr /\u003e |\n\n| Returns ||\n|------------|--------|\n| `Animator` | \u003cbr /\u003e |"]]