Stay organized with collections
Save and categorize content based on your preferences.
public
static
class
MaterialContainerTransform.ProgressThresholds
extends Object
java.lang.Object
|
↳ |
com.google.android.material.transition.MaterialContainerTransform.ProgressThresholds
|
A class which holds a start and end value which represent a range within 0.0 - 1.0.
This class is used to define the period, or sub-range, over which a child animation is run
inside a parent animation's overall 0.0 - 1.0 progress.
For example, setting the fade thresholds to a range of 0.3 - 0.6 would mean that for the
first 30% of the animation, the start view would be fully opaque and the end view would be
fully transparent. Then, the fade would begin at the 30% point of the animation and complete at
the 60% point. For the remainder of the animation after the 60% point, the start view would be
fully transparent and the end view would be fully opaque.
Summary
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
ProgressThresholds
public ProgressThresholds (float start,
float end)
Parameters |
start |
float |
end |
float |
Public methods
getEnd
public float getEnd ()
getStart
public float getStart ()
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,["# MaterialContainerTransform.ProgressThresholds\n\nSummary: [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nMaterialContainerTransform.ProgressThresholds\n=============================================\n\n\n`\npublic\nstatic\n\n\nclass\nMaterialContainerTransform.ProgressThresholds\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|--------------------------------------------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.google.android.material.transition.MaterialContainerTransform.ProgressThresholds |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA class which holds a start and end value which represent a range within 0.0 - 1.0.\n\nThis class is used to define the period, or sub-range, over which a child animation is run\ninside a parent animation's overall 0.0 - 1.0 progress.\n\nFor example, setting the fade thresholds to a range of 0.3 - 0.6 would mean that for the\nfirst 30% of the animation, the start view would be fully opaque and the end view would be\nfully transparent. Then, the fade would begin at the 30% point of the animation and complete at\nthe 60% point. For the remainder of the animation after the 60% point, the start view would be\nfully transparent and the end view would be fully opaque.\n\nSummary\n-------\n\n| ### Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[ProgressThresholds](/reference/com/google/android/material/transition/MaterialContainerTransform.ProgressThresholds#ProgressThresholds(float,%20float))`(float start, float end) ` |\n\n| ### Public methods ||\n|----------|--------------------------------------------------------------------------------------------------------------------------------|\n| ` float` | ` `[getEnd](/reference/com/google/android/material/transition/MaterialContainerTransform.ProgressThresholds#getEnd())`() ` |\n| ` float` | ` `[getStart](/reference/com/google/android/material/transition/MaterialContainerTransform.ProgressThresholds#getStart())`() ` |\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\nPublic constructors\n-------------------\n\n### ProgressThresholds\n\n```\npublic ProgressThresholds (float start, \n float end)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|----------------|\n| `start` | `float` \u003cbr /\u003e |\n| `end` | `float` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### getEnd\n\n```\npublic float getEnd ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------|--------|\n| `float` | \u003cbr /\u003e |\n\n### getStart\n\n```\npublic float getStart ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------|--------|\n| `float` | \u003cbr /\u003e |"]]