title: How to handle dynamic view created in Recycler View
body: <p>Actually, I am working on <code>RecyclerView</code> that shows some details along with images and all data comes from a database. </p>
  
  <p>In my <code>RecyclerView</code>, I have used three diffs layout and each layout is used according to data coming from the database that means if only one image comes from database then <code>one_image.xml</code> layout comes to play, if two then <code>two_imag.xml</code> layout comes to play and if more than three then the third layout I am using. </p>
  
  <p>My apps working fine for some extents but when i am trying to scroll down further, it get crashed. I come to know that the problem is on <code>OnCreateViewHolder</code>, meaning it doesn't get called when I go down further in Recycler View. </p>
  
  <p>I searched alots on google but nothing work for me. Is it possible to call <code>OnCreateViewHolder</code> every time or some other way to solve this problem? </p>
  
  <p>Thanks in advance</p>