I am creating linearLayouts programmatically and would like them to fade in and out when the visibility is set to visible/gone.
I can set
android:animateLayoutChanges="true"
in the xml-file, but since I am creating the views programmatically, I need to set it programmatically. How can I do that?