Stay organized with collections
Save and categorize content based on your preferences.
FadeThroughProvider
public
final
class
FadeThroughProvider
extends Object
implements
VisibilityAnimatorProvider
java.lang.Object
|
↳ |
com.google.android.material.transition.FadeThroughProvider
|
A class that configures and is able to provide an Animator
that fades out or in a view.
FadeThroughProvider differs from FadeProvider in that it fades out and in views sequentially.
Summary
Public methods |
Animator
|
createAppear(ViewGroup sceneRoot, View view)
Should return an Animator that animates in the appearing target view .
|
Animator
|
createDisappear(ViewGroup sceneRoot, View view)
Should return an Animator that animates out the disappearing target view .
|
float
|
getProgressThreshold()
Get the point at which a disappearing target finishes fading out and an appearing target begins
to fade in.
|
void
|
setProgressThreshold(float progressThreshold)
Set the point, between 0 and 1, at which a disappearing target finishes fading out and an
appearing target begins to fade in.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
|
Public constructors
FadeThroughProvider
public FadeThroughProvider ()
Public methods
createAppear
public 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 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
|
getProgressThreshold
public float getProgressThreshold ()
Get the point at which a disappearing target finishes fading out and an appearing target begins
to fade in.
setProgressThreshold
public void setProgressThreshold (float progressThreshold)
Set the point, between 0 and 1, at which a disappearing target finishes fading out and an
appearing target begins to fade in.
Parameters |
progressThreshold |
float : A float between 0 and 1.
|
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# FadeThroughProvider\n\nSummary: [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nFadeThroughProvider\n===================\n\n\n`\npublic\n\nfinal\n\nclass\nFadeThroughProvider\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\nimplements\n\n`[VisibilityAnimatorProvider](/reference/com/google/android/material/transition/VisibilityAnimatorProvider)`\n\n\n`\n\n|---|------------------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.google.android.material.transition.FadeThroughProvider |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA class that configures and is able to provide an [Animator](/reference/android/animation/Animator) that fades out or in a view.\n\nFadeThroughProvider differs from FadeProvider in that it fades out and in views sequentially.\n\nSummary\n-------\n\n| ### Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[FadeThroughProvider](/reference/com/google/android/material/transition/FadeThroughProvider#FadeThroughProvider())`() ` |\n\n| ### Public methods ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` Animator` | ` `[createAppear](/reference/com/google/android/material/transition/FadeThroughProvider#createAppear(android.view.ViewGroup,%20android.view.View))`(ViewGroup sceneRoot, View view) ` Should return an Animator that animates in the appearing target `view`. |\n| ` Animator` | ` `[createDisappear](/reference/com/google/android/material/transition/FadeThroughProvider#createDisappear(android.view.ViewGroup,%20android.view.View))`(ViewGroup sceneRoot, View view) ` Should return an Animator that animates out the disappearing target `view`. |\n| ` float` | ` `[getProgressThreshold](/reference/com/google/android/material/transition/FadeThroughProvider#getProgressThreshold())`() ` Get the point at which a disappearing target finishes fading out and an appearing target begins to fade in. |\n| ` void` | ` `[setProgressThreshold](/reference/com/google/android/material/transition/FadeThroughProvider#setProgressThreshold(float))`(float progressThreshold) ` Set the point, between 0 and 1, at which a disappearing target finishes fading out and an appearing target begins to fade in. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` java.lang.Object ` |-------------------|-------------------------------| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class\u003c?\u003e` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` String` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||\n| From interface ` `[com.google.android.material.transition.VisibilityAnimatorProvider](/reference/com/google/android/material/transition/VisibilityAnimatorProvider)` ` |----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract Animator` | ` `[createAppear](/reference/com/google/android/material/transition/VisibilityAnimatorProvider#createAppear(android.view.ViewGroup,%20android.view.View))`(ViewGroup sceneRoot, View view) ` Should return an Animator that animates in the appearing target `view`. | | ` abstract Animator` | ` `[createDisappear](/reference/com/google/android/material/transition/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 constructors\n-------------------\n\n### FadeThroughProvider\n\n```\npublic FadeThroughProvider ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### createAppear\n\n```\npublic 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 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 |\n\n### getProgressThreshold\n\n```\npublic float getProgressThreshold ()\n```\n\nGet the point at which a disappearing target finishes fading out and an appearing target begins\nto fade in.\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------|--------|\n| `float` | \u003cbr /\u003e |\n\n**See also:**\n\n- [setProgressThreshold(float)](/reference/com/google/android/material/transition/FadeThroughProvider#setProgressThreshold(float)) \n\n### setProgressThreshold\n\n```\npublic void setProgressThreshold (float progressThreshold)\n```\n\nSet the point, between 0 and 1, at which a disappearing target finishes fading out and an\nappearing target begins to fade in.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------------|------------------------------------------|\n| `progressThreshold` | `float`: A float between 0 and 1. \u003cbr /\u003e |"]]