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
+15-2
Original file line number
Diff line number
Diff line change
@@ -324,7 +324,11 @@ of ***Transition*** start and end point to same value.
324
324
#### Note:
325
325
🔥🔥🔥 In tutorial 2-4 and 2-5, having same background color for both fragments causing second fragment's **ENTER TRANSITION(CircularReveal and Slide.BOTTOM)** to not work.
326
326
So when using **Transitions** that extend ```Visiblity``` class such as Slide, or Fade be careful about background color.
327
-
Either set callback and set start and end properties for starging and ending scenes with
327
+
328
+
To prevent this use one of the solutions below:
329
+
330
+
* Set ```android:transitionGroup="false"``` on layout with fragments
331
+
* Set callback and set start and end properties for starting and ending scenes with
@@ -357,7 +361,7 @@ Either set callback and set start and end properties for starging and ending sce
357
361
}
358
362
```
359
363
360
-
or use**custom transitions** that extend either ```Transition``` or ```Visibility``` and force value changes.
364
+
* Use**custom transitions** that extend either ```Transition``` or ```Visibility``` and force value changes.
361
365
362
366
* ⚠️ Transitions that extend ```Visibility``` such as ```Slide```, ```Fade```, or ```Explode``` depends on ***visibility*** of the view. If
363
367
visibility is changed from ```View.INVISIBLE``` to ```View.VISIBLE``````onAppear``` method of ```Visibility``` class is called, if visibility changes
@@ -367,6 +371,13 @@ from backwards.
367
371
* ⚠️ When current transition is **EXIT** or **RETURN** transition ```captureEndValues``` is not called, because of this use a transition that extends ```Visibility``` for ```exitTransition``` and ```returnTransition``` to start,
368
372
and be aware that Animator from ```onDisAppear``` is called while current transition is exit or return.
369
373
374
+
#### Note: Breaker of chains — Transition Groups
375
+
376
+
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.**
377
+
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.
[Android — Inbox Material Transitions for RecyclerView](https://medium.com/workday-engineering/android-inbox-material-transitions-for-recyclerview-7ae3cb241aed)
0 commit comments