Force RecyclerView to redraw its items
<p>Is there any way to redraw all items of <code>RecyclerView</code>?</p>

<p>I have some Themes (in style.xml) and after changing the theme, I need the <code>RecyclerView</code> to be redrawn.</p>

<p>So I want a method that will force to re-call <code>onCreateViewHolder</code> for each items of the adapter.</p>

<p>I tried to:</p>

<ul>
<li>call <code>adapter.notifyDataSetChanged</code> but <code>onCreateViewHolder</code> is not called</li>
<li>call <code>recyclerView.setVisibility(View.GONE)</code> and then <code>recyclerView.setVisibility(View.VISIBLE)</code></li>
<li>call <code>recyclerView.invalidate()</code></li>
<li>call <code>recyclerView.setAdapter(null)</code> and then <code>recyclerView.setAdapter(adapter)</code>.<br>
This works well for 90% items. Only 90% of items will get the new style, but some items will have the old style</li>
</ul>

<p>I mention that the <code>RecyclerView</code> is attached to an Activity, not to a Fragment.</p>