title: Custom layout manager for an image gallery?
body: <p>I'm need your help with <code>LayoutManager</code>. Here is a picture of what i need:</p>
  
  <p><a href="https://i.stack.imgur.com/vzmnA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vzmnA.jpg" alt="enter image description here"></a></p>
  
  <p>I tried <code>StagerredGridLayoutManager</code> but rows have constant width. I don't know if i need to write a custom layout manager in this case? If so, I have no idea how to resize spans based on image width.</p>