title: Layout weight in Gridview
body: <p>I want the cards to fill the entire screen when it comes to various screen dimensions. I would like to use the weights or any other option that can do the same. 
          </p>
  
  <pre><code>        &lt;!--Card 1--&gt;
          &lt;android.support.v7.widget.CardView
              android:id="@+id/cardView1"
              android:layout_height="200sp"
              android:layout_width="150sp"&gt;
  
          &lt;/android.support.v7.widget.CardView&gt;
  
          &lt;!--Card 2--&gt;
          &lt;android.support.v7.widget.CardView
              android:id="@+id/cardView2"
              android:layout_height="200sp"
              android:layout_width="150sp"&gt;
  
          &lt;/android.support.v7.widget.CardView&gt;
  
          &lt;!--Card 3--&gt;
          &lt;android.support.v7.widget.CardView
              android:id="@+id/cardView3"
              android:layout_height="200sp"
              android:layout_width="150sp"&gt;
  
          &lt;/android.support.v7.widget.CardView&gt;
  
          &lt;!--Card 4--&gt;
          &lt;android.support.v7.widget.CardView
              android:id="@+id/cardView4"
              android:layout_height="200sp"
              android:layout_width="150sp"&gt;
  
          &lt;/android.support.v7.widget.CardView&gt;
      &lt;/GridLayout&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Z7qGX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z7qGX.png" alt="I want the 4 cards to fit the entire screen for any device type"></a></p>