You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29
Original file line number
Diff line number
Diff line change
@@ -372,6 +372,7 @@ and be aware that Animator from ```onDisAppear``` is called while current transi
372
372
#### Summary
373
373
* For ```enterTransition``` and ```reEnterTransition``` either check for background color change and set **transitionGroup** to false
374
374
or use transition that extends ```Visibility``` with change from INVISIBLE to VISIBLE.
375
+
375
376
⚠️ With ```reEnterTransition``` even though ```Explode``` does not work without solving background issue, most of
376
377
the classes extend ```Transition``` or ```Visibility``` work fine
377
378
@@ -384,6 +385,34 @@ the classes extend ```Transition``` or ```Visibility``` work fine
384
385
By default all views under a parent/ancestor with a background set (even transparent ones) will be automatically deemed a group. If you need to break them up like we here with a RecyclerView as the shared-root-white-backgrounded layout with transparent child Item views. You’ll need to set the **layout with the background** to **transitionGroup=false.**
385
386
But on the other hand, since the Items are “background-less” themselves, to prevent an out-of-body experience you’ll need to do the opposite and set transitionGroup=true on the Item layouts for all the child views in that Item to move together.
The container transform pattern is designed for transitions between UI elements that include a container. This pattern creates a visible connection between two UI elements.
393
+
394
+
MaterialContainerTransform is a shared element transition. Unlike traditional Android shared elements, it is not designed around a singular piece of shared content, such as an image, to be moved between two scenes. Instead, the shared element here refers to the bounding container of a start View or ViewGroup (e.g. the entire row layout of an item in a list) transforming its size and shape into that of an end View or ViewGroup (e.g. the root ViewGroup of a full screen Fragment). These start and end container Views are the “shared element” of a container transform. While these containers are being transformed, their contents are swapped to create the transition.
The shared axis pattern is used for transitions between UI elements that have a spatial or navigational relationship. This pattern uses a shared transformation on the x, y, or z axis to reinforce the relationship between elements.
Copy file name to clipboardExpand all lines: Tutorial3-1Transitions/src/main/java/com/smarttoolfactory/tutorial3_1transitions/chapter2_fragment_transitions/Activity2_6FragmentExpandCollapseTransitions.kt
Copy file name to clipboardExpand all lines: Tutorial3-1Transitions/src/main/java/com/smarttoolfactory/tutorial3_1transitions/chapter2_fragment_transitions/Fragment2_6ExpandCollapseList.kt
0 commit comments