Stay organized with collections
Save and categorize content based on your preferences.
VisibilityPropagation
abstract class VisibilityPropagation : TransitionPropagation
Known Direct Subclasses
CircularPropagation |
A propagation that varies with the distance to the epicenter of the Transition or center of the scene if no epicenter exists.
|
SidePropagation |
A TransitionPropagation that propagates based on the distance to the side and, orthogonally, the distance to epicenter.
|
|
Base class for TransitionPropagation
s that care about View Visibility and the center position of the View.
Summary
Public methods |
open Unit |
|
open Array<String!>! |
|
open Int |
Returns android.view.View#getVisibility() for the View at the time the values were captured.
|
open Int |
Returns the View's center x coordinate, relative to the screen, at the time the values were captured.
|
open Int |
Returns the View's center y coordinate, relative to the screen, at the time the values were captured.
|
Public constructors
VisibilityPropagation
VisibilityPropagation()
Public methods
captureValues
open fun captureValues(values: TransitionValues!): Unit
Parameters |
transitionValues |
The holder for any values that the Transition wishes to store. Values are stored in the values field of this TransitionValues object and are keyed from a String value. For example, to store a view's rotation value, a transition might call transitionValues.values.put("appname:transitionname:rotation", view.getRotation()) . The target view will already be stored in the transitionValues structure when this method is called. |
getPropagationProperties
open fun getPropagationProperties(): Array<String!>!
getViewX
open fun getViewX(values: TransitionValues!): Int
Returns the View's center x coordinate, relative to the screen, at the time the values were captured.
Parameters |
values |
TransitionValues!: The TransitionValues captured at the start or end of the Transition. |
Return |
Int |
the View's center x coordinate, relative to the screen, at the time the values were captured. |
getViewY
open fun getViewY(values: TransitionValues!): Int
Returns the View's center y coordinate, relative to the screen, at the time the values were captured.
Parameters |
values |
TransitionValues!: The TransitionValues captured at the start or end of the Transition. |
Return |
Int |
the View's center y coordinate, relative to the screen, at the time the values were captured. |
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-04-04 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-04-04 UTC."],[],[]]