title: LayoutManager for RecyclerView Grid with different cell width
body: <p><code>StaggeredGridLayoutManager</code> doesn't seem to allow customising a <strong>cell width</strong> or span multiple columns (except full span) for vertical orientation.</p>
  
  <p><a href="https://i.stack.imgur.com/BUk11.png" rel="noreferrer"><img src="https://i.stack.imgur.com/BUk11.png" alt="enter image description here"></a></p>
  
  <p>What is a preferred <code>LayoutManager</code> for organising cells as shown above?</p>
  
  <p><strong>P.S.</strong> I just want to know how to customise <strong>cell width</strong> and not height with <code>StaggeredGridLayoutManager</code>. I know height can be customised as implemented in this <a href="https://github.com/devunwired/recyclerview-playground/blob/master/app/src/main/java/com/example/android/recyclerplayground/adapters/SimpleStaggeredAdapter.java" rel="noreferrer">sample</a>.</p>
  
  <pre><code>public class VerticalStaggeredGridFragment extends RecyclerFragment {
  
      public static VerticalStaggeredGridFragment newInstance() {
          VerticalStaggeredGridFragment fragment = new VerticalStaggeredGridFragment();
          Bundle args = new Bundle();
          fragment.setArguments(args);
          return fragment;
      }
  
      @Override
      protected RecyclerView.LayoutManager getLayoutManager() {
          return new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL);
      }
  
      @Override
      protected RecyclerView.ItemDecoration getItemDecoration() {
          return new InsetDecoration(getActivity());
      }
  
      @Override
      protected int getDefaultItemCount() {
          return 100;
      }
  
      @Override
      protected SimpleAdapter getAdapter() {
          return new SimpleStaggeredAdapter();
      }
  }
  </code></pre>
  
  <p><strong>Adapter</strong></p>
  
  <pre><code>public class SimpleStaggeredAdapter extends SimpleAdapter {
      @Override
      public void onBindViewHolder(VerticalItemHolder itemHolder, int position) {
          super.onBindViewHolder(itemHolder, position);
  
          final View itemView = itemHolder.itemView;
          if (position % 4 == 0) {
              int height = itemView.getContext().getResources()
                      .getDimensionPixelSize(R.dimen.card_staggered_height);
              itemView.setMinimumHeight(height);
          } else {
              itemView.setMinimumHeight(0);
          }
      }
  }
  </code></pre>
  
  <p><code>itemView.setMinimumWidth(customWidth)</code> doesn't affect cell width.</p>
  
  <p>To simplify, I update my grid layout to </p>
  
  <p><a href="https://i.stack.imgur.com/nzAJY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nzAJY.png" alt="enter image description here"></a></p>
  
  <p>How to increase cell 0 width as compared to cell 1 in a <code>StaggeredGridLayoutManager</code> or any other layout manager?</p>