ItemDecoration based on viewtype in recyclerview
<p>I have multiple <em>view types</em> in my <code>RecyclerView</code> and I want to add an <code>ItemDecoration</code> based on the views type. Is there a way to do this?</p>

<p>This will add a decoration to every element:</p>

<pre><code>recyclerView.addItemDecoration(decoration);
</code></pre>

<p>I saw this <a href="https://github.com/magiepooh/RecyclerItemDecoration" rel="noreferrer">library</a> but it supports only <code>LinearLayoutManager</code> vertical or horizontal, but I am using <code>GrildLayoutManager</code> and I use drawables for dividers.</p>