title: LayoutTransitions not working for visibility changes
body: <p>I'm trying to use LayoutTransition animations but they aren't working.</p>
  
  <p>I set </p>
  
  <pre><code>android:animateLayoutChanges="true
  </code></pre>
  
  <p>in the parent LinearLayout in my Activity's layout. I then do a setVisibility(View.VISIBLE) or setVisibility(View.GONE) on a child LinearLayout that contains some checkBoxes when another CheckBox is checked or unchecked. The visibility change is not animated. There is a ScrollView inside the parent LinearLayout.</p>
  
  <p>I've also tried setting layout transitions through programmatically with </p>
  
  <pre><code>LayoutTransition layoutTransition = new LayoutTransition();
  layout.setLayoutTransition(layoutTransition)
  </code></pre>
  
  <p>but that had no effect either. </p>
  
  <p>Where am I going wrong? This should be simple.</p>
  
  <p>This is on Android 6.0.1 and using AppCompatActivity from the v23.2.0 support library.</p>
  
  <p>EDIT: I noticed that <em>some</em> layout changes are animated. For example, when I set a recyclerView's visibility between VISIBLE and GONE, that is nicely animated. However simple layouts holding 3 checkboxes don't animate when their visibility is set to VISIBLE/GONE. </p>