title: Recycler view - resizing item view while scrolling (for carousel like effect)
body: <p>I need to create a vertical recyclerview in which item view in center of the screen should be resized to have zoom like effect while scrolling.</p>
  
  <p>Things I have tried but didn't work :</p>
  
  <ol>
  <li><p>Adding a scroll listener and looping through item views by position, measuring the centered position then updating <code>LayoutParams</code> of centered <code>view</code>.</p>
  
  <ul>
  <li><code>RecyclerView</code> won't let compute the position of items or update view while scrolling. It throws <code>IllegalStateException</code> if such operations are performed in <code>onScrolled</code></li>
  </ul></li>
  <li><p>Changing <code>LayoutParams</code> of centered item view in <code>onScrollStateChanged</code> while scrolling state is <code>IDLE</code> or <code>SETTLING</code>. </p>
  
  <ul>
  <li>That only updates view after scroll has been/is going to be completed, not during scrolling on items is being performed.</li>
  </ul></li>
  <li><p>The last option remained is implementing own custom <code>LayoutManager</code> that would extend default <code>LayoutManager</code>. </p>
  
  <ul>
  <li>As far as I know, implementing custom <code>Layoutmanager</code> involves dealing with a lot more complex computations that needs to handled. </li>
  </ul></li>
  </ol>
  
  <p><strong>Any other solutions or ideas will be appreciated.</strong></p>