title: Animate when layout change occurs
body: <p>In my android application activity layout I have a LinearLayout and RecyclerView, LinearLayout contains an EditText and TextField , and RecyclerView lies below the LinearLayout.</p>
  
  <pre><code>&lt;LinearLayout 
    android:orientation="vertical"&gt;
    &lt;LinearLayout 
      android:orientation="vertical"&gt;
       &lt;EditText&gt;
       &lt;TextView&gt;
    &lt;/LinearLayout&gt;
    &lt;RecyclerView/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>at some point I have to remove the LinearLayout lies above the RecyclerView. so I am hiding that by giving some animaton effects</p>
  
  <pre><code>LinearLayout.animate().translationY(-LinearLayout.getHeight()).setInterpolator(new DecelerateInterpolator()).alpha(0.0f).setListener(new AnimatorListenerAdapter() {
              @Override
              public void onAnimationEnd(Animator animation) {
                  super.onAnimationEnd(animation);
                  LinearLayout.setVisibility(View.GONE);
              }
          }).setDuration(HEADER_HIDING_ANIMATION_DURATION);
  </code></pre>
  
  <p>when the animation ends the view is setting to GONE. then the below RecyclerView is jumping to the top, it simply jumps without any animation and all, is there any way to manage it ? a small animaton for the layout change may help me. I have tried in xml, but it throws some error.</p>