-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback,android.view.KeyEvent.Callback,android.view.ViewManager,android.view.ViewParent,android.view.accessibility.AccessibilityEventSource,com.skydoves.transformationlayout.TransformationParams,java.io.Serializable
public final class TransformationLayout extends FrameLayout implements TransformationParams
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTransformationLayout.Paramspublic enumTransformationLayout.DirectionThe Direction to be used by this transform.
public enumTransformationLayout.FadeModeThe FadeMode to be used to swap the content of the start View with that of the end View.
public enumTransformationLayout.FitModeThe FitMode to be used when scaling the incoming content of the end View.
public enumTransformationLayout.Motionpublic final classTransformationLayout.BuilderBuilder class for creating a new instance of the TransformationLayout.
-
Field Summary
Fields Modifier and Type Field Description private BooleanisTransformedprivate BooleanisTransformingprivate Longdurationprivate TransformationLayout.MotionpathMotionprivate IntegerzOrderprivate IntegercontainerColorprivate IntegerallContainerColorsprivate IntegerscrimColorprivate TransformationLayout.Directiondirectionprivate TransformationLayout.FadeModefadeModeprivate TransformationLayout.FitModefitModeprivate FloatstartElevationprivate FloatendElevationprivate BooleanelevationShadowEnabledprivate BooleanholdAtEndEnabledpublic OnTransformFinishListeneronTransformFinishListenerprivate LongthrottledTime
-
Constructor Summary
Constructors Constructor Description TransformationLayout(Context context)TransformationLayout(Context context, AttributeSet attributeSet)TransformationLayout(Context context, AttributeSet attributeSet, Integer defStyle)
-
Method Summary
Modifier and Type Method Description final BooleangetIsTransformed()Presents TransformationLayout is already transformed or not. final UnitsetIsTransformed(Boolean isTransformed)final BooleangetIsTransforming()Presents TransformationLayout is during transforming or not. final UnitsetIsTransforming(Boolean isTransforming)LonggetDuration()Duration of the transformation. UnitsetDuration(Long duration)Duration of the transformation. TransformationLayout.MotiongetPathMotion()Motion of the transformation path. UnitsetPathMotion(TransformationLayout.Motion pathMotion)Motion of the transformation path. IntegergetZOrder()The id of the View whose overlay TransitionDrawable will be added to. UnitsetZOrder(Integer zOrder)The id of the View whose overlay TransitionDrawable will be added to. IntegergetContainerColor()The container color to be used as the background of the morphing container. UnitsetContainerColor(@ColorInt() Integer containerColor)The container color to be used as the background of the morphing container. IntegergetAllContainerColors()The all container colors (start and end) to be used as the background of the morphing container. UnitsetAllContainerColors(@ColorInt() Integer allContainerColors)The all container colors (start and end) to be used as the background of the morphing container. IntegergetScrimColor()The color to be drawn under the morphing container but within the bounds of the zOrder. UnitsetScrimColor(@ColorInt() Integer scrimColor)The color to be drawn under the morphing container but within the bounds of the zOrder. TransformationLayout.DirectiongetDirection()The Direction to be used by this transform. UnitsetDirection(TransformationLayout.Direction direction)The Direction to be used by this transform. TransformationLayout.FadeModegetFadeMode()The FadeMode to be used to swap the content of the start View with that of the end View. UnitsetFadeMode(TransformationLayout.FadeMode fadeMode)The FadeMode to be used to swap the content of the start View with that of the end View. TransformationLayout.FitModegetFitMode()The FitMode to be used when scaling the incoming content of the end View. UnitsetFitMode(TransformationLayout.FitMode fitMode)The FitMode to be used when scaling the incoming content of the end View. FloatgetStartElevation()The elevation that will be used to render a shadow around the container at the start of the transition. UnitsetStartElevation(Float startElevation)The elevation that will be used to render a shadow around the container at the start of the transition. FloatgetEndElevation()The elevation that will be used to render a shadow around the container at the end of the transition. UnitsetEndElevation(Float endElevation)The elevation that will be used to render a shadow around the container at the end of the transition. BooleangetElevationShadowEnabled()Whether shadows should be drawn around the container to approximate native elevation shadows on the start and end views. UnitsetElevationShadowEnabled(Boolean elevationShadowEnabled)Whether shadows should be drawn around the container to approximate native elevation shadows on the start and end views. BooleangetHoldAtEndEnabled()Whether to hold the last frame at the end of the animation. UnitsetHoldAtEndEnabled(Boolean holdAtEndEnabled)Whether to hold the last frame at the end of the animation. final LonggetThrottledTime()final UnitsetThrottledTime(Long throttledTime)final UnitsetOnTransformFinishListener(OnTransformFinishListener onTransformFinishListener)sets a callback method which invoked when the transforming is finished. final UnitbindTargetView(View targetView)binds a target view for transforming TransformationLayout to the target view. final BundlewithActivity(Activity activity, String transitionName)sets an activity of the transition and returns a bundle of the transition information. final BundlewithContext(Context context, String transitionName)sets a context of the transition and returns a bundle of the transition information. final BundlewithView(View view, String transitionName)sets an view of the transition and returns a bundle of the transition information. final BundlegetBundle(String keyName, String transitionName)get a bundle with parcelable transformation params. final TransformationLayout.ParamsgetParams()gets parameters of the TransformationLayout.Params. final ParcelablegetParcelableParams()gets a parcelable of the TransformationLayout.Params. final UnitstartTransform(ViewGroup container)starts transforming the TransformationLayout into targetView with stopping container. final UnitstartTransform()starts transforming the TransformationLayout into targetView with stopping parent. final UnitstartTransformWithDelay(ViewGroup container, Long delay)starts transforming the TransformationLayout into targetView with delaying. final UnitstartTransformWithDelay(Long delay)starts transforming the TransformationLayout into targetView with stopping parent with delaying. final UnitfinishTransform(ViewGroup container)transforming the targetView into TransformationLayout. final UnitfinishTransform()transforming the targetView into TransformationLayout with stopping parent. final UnitfinishTransformWithDelay(ViewGroup container, Long delay)transforming the targetView into TransformationLayout with delaying. final UnitfinishTransformWithDelay(Long delay)transforming the targetView into TransformationLayout with stopping parent with delaying.. -
Methods inherited from class android.view.ViewGroup
addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, animate, announceForAccessibility, autofill, autofill, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, checkInputConnectionProxy, clearAnimation, clearViewTranslationCallback, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, draw, drawableHotspotChanged, findOnBackInvokedDispatcher, findViewById, findViewWithTag, fitSystemWindows, focusSearch, forceHasOverlappingRendering, forceLayout, generateDisplayHash, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAllowedHandwritingDelegatePackageName, getAllowedHandwritingDelegatorPackageName, getAlpha, getAnimation, getAnimationMatrix, getApplicationWindowToken, getAttributeResolutionStack, getAttributeSourceResourceMap, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintBlendMode, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentCaptureSession, getContentDescription, getContext, getContextMenuInfo, getDefaultFocusHighlightEnabled, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHandwritingBoundsOffsetBottom, getHandwritingBoundsOffsetLeft, getHandwritingBoundsOffsetRight, getHandwritingBoundsOffsetTop, getHandwritingDelegatorCallback, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAccessibility, getImportantForAutofill, getImportantForContentCapture, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInSurface, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineAmbientShadowColor, getOutlineProvider, getOutlineSpotShadowColor, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getPreferKeepClearRects, getReceiveContentMimeTypes, getResources, getRevealOnFocusHint, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootSurfaceControl, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollCaptureHint, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateDescription, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchDelegate, getTouchables, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTranslationResponse, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowInsetsController, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOnLongClickListeners, hasOverlappingRendering, hasPointerCapture, hasWindowFocus, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityDataSensitive, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isAutoHandwritingEnabled, isClickable, isContextClickable, isCredential, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHandwritingDelegate, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isImportantForContentCapture, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPivotSet, isPreferKeepClear, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollContainer, isScrollbarFadingEnabled, isSelected, isShowingLayoutBounds, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, isVisibleToUserForAutofill, keyboardNavigationClusterSearch, measure, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateInputConnection, onCreateViewTranslationRequest, onCreateVirtualViewTranslationRequests, onDisplayHint, onDragEvent, onDraw, onDrawForeground, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onOverScrolled, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideContentCaptureStructure, onProvideStructure, onProvideVirtualStructure, onReceiveContent, onRestoreInstanceState, onRtlPropertiesChanged, onSaveInstanceState, onScreenStateChanged, onScrollCaptureSearch, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onViewTranslationResponse, onVirtualViewTranslationResponses, onVisibilityAggregated, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, performReceiveContent, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, requestUnbufferedDispatch, requireViewById, resetPivot, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDataSensitive, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAllowClickWhenDisabled, setAllowedHandwritingDelegatePackage, setAllowedHandwritingDelegatorPackage, setAlpha, setAnimation, setAnimationMatrix, setAutoHandwritingEnabled, setAutofillHints, setAutofillId, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintBlendMode, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentCaptureSession, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setHandwritingBoundsOffsets, setHandwritingDelegatorCallback, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setImportantForContentCapture, setIsCredential, setIsHandwritingDelegate, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLeftTopRightBottom, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnReceiveContentListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPreferKeepClear, setPreferKeepClearRects, setPressed, setRenderEffect, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollBarSize, setScrollBarStyle, setScrollCaptureCallback, setScrollCaptureHint, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setScrollbarFadingEnabled, setSelected, setSoundEffectsEnabled, setStateDescription, setStateListAnimator, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setViewTranslationCallback, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, unscheduleDrawable, updateDragShadow, verifyDrawable, willNotCacheDrawing, willNotDraw -
Methods inherited from class android.widget.FrameLayout
addChildrenForAccessibility, addExtraDataToAccessibilityNodeInfo, addFocusables, addKeyboardNavigationClusters, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, canAnimate, childDrawableStateChanged, childHasTransientStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchCreateViewTranslationRequest, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchFreezeSelfOnly, dispatchGenericFocusedEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPointerCaptureChanged, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchScrollCaptureSearch, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowInsetsAnimationEnd, dispatchWindowInsetsAnimationPrepare, dispatchWindowInsetsAnimationProgress, dispatchWindowInsetsAnimationStart, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawChild, drawableStateChanged, endViewTransition, findFocus, findOnBackInvokedDispatcherForChild, findViewsWithText, focusSearch, focusableViewAvailable, gatherTransparentRegion, getChildAt, getChildCount, getChildDrawingOrder, getChildDrawingOrder, getChildStaticTransformation, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isLayoutSuppressed, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, measureChild, measureChildWithMargins, measureChildren, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAttachedToWindow, onCreateDrawableState, onDescendantInvalidated, onDetachedFromWindow, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestFocusInDescendants, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeDetachedView, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, restoreDefaultFocus, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setStaticTransformationsEnabled, setTouchscreenBlocksFocus, setTransitionGroup, setWindowInsetsAnimationCallback, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, suppressLayout, updateViewLayout -
Methods inherited from class com.skydoves.transformationlayout.TransformationLayout
checkLayoutParams, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getAccessibilityClassName, getConsiderGoneChildrenWhenMeasuring, getMeasureAllChildren, onLayout, onMeasure, setForegroundGravity, setMeasureAllChildren, shouldDelayChildPressedState -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
TransformationLayout
TransformationLayout(Context context)
-
TransformationLayout
TransformationLayout(Context context, AttributeSet attributeSet)
-
TransformationLayout
TransformationLayout(Context context, AttributeSet attributeSet, Integer defStyle)
-
-
Method Detail
-
getIsTransformed
final Boolean getIsTransformed()
Presents TransformationLayout is already transformed or not.
-
setIsTransformed
final Unit setIsTransformed(Boolean isTransformed)
-
getIsTransforming
final Boolean getIsTransforming()
Presents TransformationLayout is during transforming or not.
-
setIsTransforming
final Unit setIsTransforming(Boolean isTransforming)
-
getDuration
Long getDuration()
Duration of the transformation.
-
setDuration
Unit setDuration(Long duration)
Duration of the transformation.
-
getPathMotion
TransformationLayout.Motion getPathMotion()
Motion of the transformation path.
-
setPathMotion
Unit setPathMotion(TransformationLayout.Motion pathMotion)
Motion of the transformation path.
-
setZOrder
Unit setZOrder(Integer zOrder)
The id of the View whose overlay TransitionDrawable will be added to.
-
getContainerColor
Integer getContainerColor()
The container color to be used as the background of the morphing container.
-
setContainerColor
Unit setContainerColor(@ColorInt() Integer containerColor)
The container color to be used as the background of the morphing container.
-
getAllContainerColors
Integer getAllContainerColors()
The all container colors (start and end) to be used as the background of the morphing container.
-
setAllContainerColors
Unit setAllContainerColors(@ColorInt() Integer allContainerColors)
The all container colors (start and end) to be used as the background of the morphing container.
-
getScrimColor
Integer getScrimColor()
The color to be drawn under the morphing container but within the bounds of the zOrder.
-
setScrimColor
Unit setScrimColor(@ColorInt() Integer scrimColor)
The color to be drawn under the morphing container but within the bounds of the zOrder.
-
getDirection
TransformationLayout.Direction getDirection()
The Direction to be used by this transform.
-
setDirection
Unit setDirection(TransformationLayout.Direction direction)
The Direction to be used by this transform.
-
getFadeMode
TransformationLayout.FadeMode getFadeMode()
The FadeMode to be used to swap the content of the start View with that of the end View.
-
setFadeMode
Unit setFadeMode(TransformationLayout.FadeMode fadeMode)
The FadeMode to be used to swap the content of the start View with that of the end View.
-
getFitMode
TransformationLayout.FitMode getFitMode()
The FitMode to be used when scaling the incoming content of the end View.
-
setFitMode
Unit setFitMode(TransformationLayout.FitMode fitMode)
The FitMode to be used when scaling the incoming content of the end View.
-
getStartElevation
Float getStartElevation()
The elevation that will be used to render a shadow around the container at the start of the transition.
-
setStartElevation
Unit setStartElevation(Float startElevation)
The elevation that will be used to render a shadow around the container at the start of the transition.
-
getEndElevation
Float getEndElevation()
The elevation that will be used to render a shadow around the container at the end of the transition.
-
setEndElevation
Unit setEndElevation(Float endElevation)
The elevation that will be used to render a shadow around the container at the end of the transition.
-
getElevationShadowEnabled
Boolean getElevationShadowEnabled()
Whether shadows should be drawn around the container to approximate native elevation shadows on the start and end views.
-
setElevationShadowEnabled
Unit setElevationShadowEnabled(Boolean elevationShadowEnabled)
Whether shadows should be drawn around the container to approximate native elevation shadows on the start and end views.
-
getHoldAtEndEnabled
Boolean getHoldAtEndEnabled()
Whether to hold the last frame at the end of the animation.
-
setHoldAtEndEnabled
Unit setHoldAtEndEnabled(Boolean holdAtEndEnabled)
Whether to hold the last frame at the end of the animation.
-
getThrottledTime
final Long getThrottledTime()
-
setThrottledTime
final Unit setThrottledTime(Long throttledTime)
-
setOnTransformFinishListener
final Unit setOnTransformFinishListener(OnTransformFinishListener onTransformFinishListener)
sets a callback method which invoked when the transforming is finished.
-
bindTargetView
final Unit bindTargetView(View targetView)
binds a target view for transforming TransformationLayout to the target view. This function must be called before invoking startTransform and finishTransform.
-
withActivity
final Bundle withActivity(Activity activity, String transitionName)
sets an activity of the transition and returns a bundle of the transition information. The return value must be used in startActivity's parameter as a bundle.
-
withContext
final Bundle withContext(Context context, String transitionName)
sets a context of the transition and returns a bundle of the transition information. The return value must be used in startActivity's parameter as a bundle.
-
withView
final Bundle withView(View view, String transitionName)
sets an view of the transition and returns a bundle of the transition information. The return value must be used in startActivity's parameter as a bundle.
-
getBundle
final Bundle getBundle(String keyName, String transitionName)
get a bundle with parcelable transformation params.
-
getParams
final TransformationLayout.Params getParams()
gets parameters of the TransformationLayout.Params.
-
getParcelableParams
final Parcelable getParcelableParams()
gets a parcelable of the TransformationLayout.Params.
-
startTransform
final Unit startTransform(ViewGroup container)
starts transforming the TransformationLayout into targetView with stopping container.
-
startTransform
final Unit startTransform()
starts transforming the TransformationLayout into targetView with stopping parent.
-
startTransformWithDelay
final Unit startTransformWithDelay(ViewGroup container, Long delay)
starts transforming the TransformationLayout into targetView with delaying.
-
startTransformWithDelay
final Unit startTransformWithDelay(Long delay)
starts transforming the TransformationLayout into targetView with stopping parent with delaying.
-
finishTransform
final Unit finishTransform(ViewGroup container)
transforming the targetView into TransformationLayout.
-
finishTransform
final Unit finishTransform()
transforming the targetView into TransformationLayout with stopping parent.
-
finishTransformWithDelay
final Unit finishTransformWithDelay(ViewGroup container, Long delay)
transforming the targetView into TransformationLayout with delaying.
-
finishTransformWithDelay
final Unit finishTransformWithDelay(Long delay)
transforming the targetView into TransformationLayout with stopping parent with delaying..
-
-
-
-