title: GridLayoutManager Customization
body: <p>i want to know if there is way that i can customize <code>gridlayoutmanager</code> in android to have horizontal layout like this sketch:
  <a href="https://i.stack.imgur.com/UsYoI.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UsYoI.jpg" alt="enter image description here"></a></p>
  
  <p>i tried some layout manager that i found in Github but non of them that help me to implement this kind of layout manager.</p>
  
  <p>something like this:</p>
  
  <pre><code>public class CustomLayoutManager extends StaggeredGridLayoutManager {
  public CustomLayoutManager(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
      super(context, attrs, defStyleAttr, defStyleRes);
  }
  
  public CustomLayoutManager(int spanCount, int orientation) {
      super(spanCount, orientation);
  }
  
  @Override
  public void onMeasure(RecyclerView.Recycler recycler, RecyclerView.State state, int widthSpec, int heightSpec) {
      super.onMeasure(recycler, state, widthSpec, heightSpec);
  }
  
  @Override
  public void setSpanCount(int spanCount) {
      super.setSpanCount(spanCount);
  }}
  </code></pre>
  
  <p>any help will be appreciated
  thanks</p>