During a shared element Activity transition, shared elements are drawn in the window decor view's ViewOverlay
by default. If necessary, the developer can disable this default behavior by calling the Window#setSharedElementsUseOverlay(false)
method. The Fragment
class, however, does not seem to declare a similar method for Fragment transitions.
For Fragment transitions, are shared elements also drawn in a view overlay on top of the fragment's view hierarchy by default? If so, is there a way to disable the default behavior as there is in the Activity transitions API?