title: Animation in the RecyclerViews
body: <p>I am trying to implement animation in my RecyclerView as mentioned <a href="https://stackoverflow.com/a/26748274/8387050">here</a></p>
  
  <p>I have confusion to use this code as mentioned in post.</p>
  
  <pre><code>@Override
      public void onViewDetachedFromWindow(final RecyclerView.ViewHolder holder)
      {
          ((CustomViewHolder)holder).clearAnimation();
      }
  </code></pre>
  
  <p>Its giving me error like this and I am not able to solve it</p>
  
  <p><a href="https://i.stack.imgur.com/Xbn3C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xbn3C.png" alt="enter image description here"></a></p>
  
  <p>I have also confusion in add </p>
  
  <pre><code>public void clearAnimation()
      {
          mRootLayout.clearAnimation();
      }
  </code></pre>
  
  <p>How should I add and use it ?</p>
  
  <p>Thanks</p>