Adding multiple header in Recyclerview or Listview. randomly
<p>How can a add multiple header or dividers in RecyclerView or listview. randomly as highlighted in the image below:</p>

<p>Multiple heading in RecyclerView on the basic of date - Demo Image</p>

<p><a href="https://i.stack.imgur.com/cBMSN.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/cBMSN.jpg" alt="enter image description here"></a></p>