title: RecyclerView Increase Height Animation Not working
body: <p>I am trying to increase <code>RecyclerView</code> height on click of Button then decrease it on button click with Animation. </p>
  
  <p>It is increasing and decreasing properly but animation is not working. </p>
  
  <p>Here is my code. </p>
  
  <pre><code>public void expand(View view) {
  
      Button button = (Button) view;
      if(button.getText().toString().equalsIgnoreCase("INCREASE")) {
  
          button.setText("DECREASE");
          final int height = (int) (recyclerView.getHeight() * 2.5);
          Animation a = new Animation() {
  
              @Override
              protected void applyTransformation(float interpolatedTime, Transformation t) {
  
                  FrameLayout.LayoutParams lp =
                          new FrameLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, height);
                  lp.gravity = Gravity.BOTTOM;
                  recyclerView.setLayoutParams(lp);
              }
          };
          a.setDuration(2000); // in ms
          recyclerView.startAnimation(a);
      }
      else
      {
  
          button.setText("INCREASE");
          final int height = (int) (recyclerView.getHeight() / 2.5);
          Animation a = new Animation() {
  
              @Override
              protected void applyTransformation(float interpolatedTime, Transformation t) {
  
                  FrameLayout.LayoutParams lp =
                          new FrameLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, height);
                  lp.gravity = Gravity.BOTTOM;
                  recyclerView.setLayoutParams(lp);
              }
          };
          a.setDuration(2000); // in ms
          recyclerView.startAnimation(a);
      }
  
  }
  </code></pre>
  
  <p><strong>How do I do it ? I don't want to stretch it. I want to increase its height with some animation effect.</strong></p>