set Layout Transition
When called, this method throws a UnsupportedOperationException on APIs above 17. On APIs 17 and below, it calls FrameLayout.setLayoutTransition This can be called either explicitly, or implicitly by setting animateLayoutChanges to true
.
View animations and transitions are disabled for FragmentContainerView for APIs above 17. Use FragmentTransaction.setCustomAnimations and FragmentTransaction.setTransition.
Parameters
transition
The LayoutTransition object that will animated changes in layout. A value of null
means no transition will run on layout changes.