title: RecyclerView with CardView as Dashboard or like a Windows Tiles
body: <p>I spent many time looking for the solution How to do the Windows tiles liked interface, also knowing as Dashboard. I want use for it RecyclerView with CardView. I found old solution but there used LinearLayout with Buttons: <a href="https://stackoverflow.com/questions/16466914/how-to-create-layout-with-6-buttons-like-windows-tiles">How to create layout with 6 buttons like windows tiles</a></p>
  
  <p>What I have at this moment:
  <a href="https://i.stack.imgur.com/dzNUX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dzNUX.png" alt="enter image description here"></a></p>
  
  <p>What I want:
  <a href="https://i.stack.imgur.com/Efsmj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Efsmj.png" alt="enter image description here"></a></p>
  
  <p>I have six CardViews, they should occupy the entire area of the parent RelativeLayout and be the same size regardless of the width of the screen.</p>
  
  <p>In portrait mode I have 2 columns and in landscape - 3 cols.</p>
  
  <pre><code> recyclerView.setHasFixedSize(true);
          int columns = resources.getConfiguration()
                  .orientation == Configuration.ORIENTATION_LANDSCAPE ? 3 : 2;
  
          RecyclerView.LayoutManager mLayoutManager = new GridLayoutManager(getApplicationContext(), columns);
          recyclerView.addItemDecoration(new GridSpacingItemDecoration(columns,
                  Utils.dpToPx(resources, 3), true));
          recyclerView.setItemAnimator(new DefaultItemAnimator());
          recyclerView.setLayoutManager(mLayoutManager);
  </code></pre>
  
  <p>How can I do that?</p>