title: How to disable RecyclerView item decoration drawing for the duration of item animations
body: <p>I have some basic item decoration which draws some stuff in <code>ItemDecoration.onDrawOver</code> method.</p>
  
  <p>This <code>RecyclerView</code> also has <code>DefaultItemAnimator</code> set on it.
  Animations are working, all is great. Except one thing.</p>
  
  <p>When all existing items are swapped with a new item set in this adapter, the decorations are being shown while animation is running. </p>
  
  <p>I need a way to hide them.
  When animation finishes, they need to be shown, but while it is running, they must be hidden.</p>
  
  <p>I tried the following:</p>
  
  <pre><code>public void onDrawOver(..., RecyclerView.State state) {
      if(state.willRunPredictiveAnimations() || state.willRunSimpleAnimations()) {
          return;
      }
      // else do drawing stuff here
  }
  </code></pre>
  
  <p>but this isn't helping. Decoration is only removed for the short period of animation, but then appears again while it is still running.</p>
  
  <p><em>Also setup includes a <code>RecyclerView.Adapter</code> which hasStableIds() (in case that bit matters).</em></p>