Stay organized with collections
Save and categorize content based on your preferences.
MaterialElevationScale
public
final
class
MaterialElevationScale
extends Visibility
java.lang.Object
|
↳ |
androidx.transition.Transition
|
|
↳ |
androidx.transition.Visibility
|
|
|
↳ |
com.google.android.material.transition.MaterialElevationScale
|
A Visibility
transition that scales the size of a surface up or down
to emphasize elevation changes.
This can be useful as an exit transition and reenter transition in conjunction with the MaterialContainerTransform
.
Summary
Inherited constants |
From class
androidx.transition.Visibility
|
From class
androidx.transition.Transition
int |
MATCH_ID
|
int |
MATCH_INSTANCE
|
int |
MATCH_ITEM_ID
|
int |
MATCH_NAME
|
|
Public methods |
void
|
addAdditionalAnimatorProvider(VisibilityAnimatorProvider additionalAnimatorProvider)
Adds an additional VisibilityAnimatorProvider , which provides animators be played
together with the primary and secondary VisibilityAnimatorProviders .
|
void
|
clearAdditionalAnimatorProvider()
Clears all additional VisibilityAnimatorProviders that were
previously added.
|
P extends VisibilityAnimatorProvider
|
getPrimaryAnimatorProvider()
Returns the primary VisibilityAnimatorProvider for this transition, which can be
modified but not swapped out completely.
|
VisibilityAnimatorProvider
|
getSecondaryAnimatorProvider()
Returns the secondary VisibilityAnimatorProvider for this transition or null, which can
be modified or swapped out completely for a different VisibilityAnimatorProvider .
|
boolean
|
isGrowing()
|
boolean
|
isSeekingSupported()
|
Animator
|
onAppear(ViewGroup sceneRoot, View view, TransitionValues startValues, TransitionValues endValues)
|
Animator
|
onDisappear(ViewGroup sceneRoot, View view, TransitionValues startValues, TransitionValues endValues)
|
boolean
|
removeAdditionalAnimatorProvider(VisibilityAnimatorProvider additionalAnimatorProvider)
Removes an additional VisibilityAnimatorProvider that was previously added.
|
void
|
setSecondaryAnimatorProvider(VisibilityAnimatorProvider secondaryAnimatorProvider)
Sets the secondary VisibilityAnimatorProvider , which provides animators to be played
together with the primary VisibilityAnimatorProvider .
|
Inherited methods |
From class
androidx.transition.Visibility
void
|
captureEndValues(TransitionValues arg0)
|
void
|
captureStartValues(TransitionValues arg0)
|
Animator
|
createAnimator(ViewGroup arg0, TransitionValues arg1, TransitionValues arg2)
|
int
|
getMode()
|
String[]
|
getTransitionProperties()
|
boolean
|
isTransitionRequired(TransitionValues arg0, TransitionValues arg1)
|
boolean
|
isVisible(TransitionValues arg0)
|
Animator
|
onAppear(ViewGroup arg0, View arg1, TransitionValues arg2, TransitionValues arg3)
|
Animator
|
onAppear(ViewGroup arg0, TransitionValues arg1, int arg2, TransitionValues arg3, int arg4)
|
Animator
|
onDisappear(ViewGroup arg0, TransitionValues arg1, int arg2, TransitionValues arg3, int arg4)
|
Animator
|
onDisappear(ViewGroup arg0, View arg1, TransitionValues arg2, TransitionValues arg3)
|
void
|
setMode(int arg0)
|
|
From class
androidx.transition.Transition
Transition
|
addListener(Transition.TransitionListener arg0)
|
Transition
|
addTarget(String arg0)
|
Transition
|
addTarget(View arg0)
|
Transition
|
addTarget(int arg0)
|
Transition
|
addTarget(Class<?> arg0)
|
void
|
animate(Animator arg0)
|
void
|
cancel()
|
abstract
void
|
captureEndValues(TransitionValues arg0)
|
abstract
void
|
captureStartValues(TransitionValues arg0)
|
Object
|
clone()
|
Animator
|
createAnimator(ViewGroup arg0, TransitionValues arg1, TransitionValues arg2)
|
void
|
end()
|
Transition
|
excludeChildren(int arg0, boolean arg1)
|
Transition
|
excludeChildren(Class<?> arg0, boolean arg1)
|
Transition
|
excludeChildren(View arg0, boolean arg1)
|
Transition
|
excludeTarget(int arg0, boolean arg1)
|
Transition
|
excludeTarget(View arg0, boolean arg1)
|
Transition
|
excludeTarget(Class<?> arg0, boolean arg1)
|
Transition
|
excludeTarget(String arg0, boolean arg1)
|
long
|
getDuration()
|
Rect
|
getEpicenter()
|
Transition.EpicenterCallback
|
getEpicenterCallback()
|
TimeInterpolator
|
getInterpolator()
|
String
|
getName()
|
PathMotion
|
getPathMotion()
|
TransitionPropagation
|
getPropagation()
|
final
Transition
|
getRootTransition()
|
long
|
getStartDelay()
|
List<Integer>
|
getTargetIds()
|
List<String>
|
getTargetNames()
|
List<Class<?>>
|
getTargetTypes()
|
List<View>
|
getTargets()
|
String[]
|
getTransitionProperties()
|
TransitionValues
|
getTransitionValues(View arg0, boolean arg1)
|
boolean
|
isSeekingSupported()
|
boolean
|
isTransitionRequired(TransitionValues arg0, TransitionValues arg1)
|
void
|
pause(View arg0)
|
Transition
|
removeListener(Transition.TransitionListener arg0)
|
Transition
|
removeTarget(View arg0)
|
Transition
|
removeTarget(String arg0)
|
Transition
|
removeTarget(Class<?> arg0)
|
Transition
|
removeTarget(int arg0)
|
void
|
resume(View arg0)
|
void
|
runAnimators()
|
Transition
|
setDuration(long arg0)
|
void
|
setEpicenterCallback(Transition.EpicenterCallback arg0)
|
Transition
|
setInterpolator(TimeInterpolator arg0)
|
void
|
setMatchOrder(int... arg0)
|
void
|
setPathMotion(PathMotion arg0)
|
void
|
setPropagation(TransitionPropagation arg0)
|
Transition
|
setStartDelay(long arg0)
|
void
|
start()
|
String
|
toString()
|
|
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
MaterialElevationScale
public MaterialElevationScale (boolean growing)
Parameters |
growing |
boolean |
Public methods
clearAdditionalAnimatorProvider
public void clearAdditionalAnimatorProvider ()
Clears all additional VisibilityAnimatorProviders
that were
previously added.
isGrowing
public boolean isGrowing ()
isSeekingSupported
public boolean isSeekingSupported ()
onAppear
public Animator onAppear (ViewGroup sceneRoot,
View view,
TransitionValues startValues,
TransitionValues endValues)
Parameters |
sceneRoot |
ViewGroup |
view |
View |
startValues |
TransitionValues |
endValues |
TransitionValues |
onDisappear
public Animator onDisappear (ViewGroup sceneRoot,
View view,
TransitionValues startValues,
TransitionValues endValues)
Parameters |
sceneRoot |
ViewGroup |
view |
View |
startValues |
TransitionValues |
endValues |
TransitionValues |
removeAdditionalAnimatorProvider
public boolean removeAdditionalAnimatorProvider (VisibilityAnimatorProvider additionalAnimatorProvider)
Removes an additional VisibilityAnimatorProvider
that was previously added.
Parameters |
additionalAnimatorProvider |
VisibilityAnimatorProvider |
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 2024-05-02 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-05-02 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 2024-05-02 UTC."]]