title: layout_weight not work for CardView
body: <p>read data from server and show that in card view . i do so many ways for give weight to card view but not work! </p>
  
  <p>this is my code :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
  
  
      &lt;android.support.v7.widget.CardView
          xmlns:card_view="http://schemas.android.com/apk/res-auto"
          xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginTop="5dp"
          android:layout_marginLeft="5dp"
          android:layout_marginRight="5dp"
          card_view:cardCornerRadius="5dp"&gt;
  
  
             &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_margin="10dp"
              android:orientation="vertical"&gt;
  
  
              &lt;ImageView
                  android:layout_gravity="center"
                  android:id="@+id/img"
                  android:scaleType="fitXY"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content" /&gt;
  
              &lt;TextView
                  android:id="@+id/tv_name"
                  android:layout_marginTop="10dp"
                  android:layout_marginBottom="10dp"
                  android:textSize="18sp"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:textStyle="bold" /&gt;
              &lt;TextView
                  android:id="@+id/tv_version"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content" /&gt;
              &lt;TextView
                  android:id="@+id/tv_api_level"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content" /&gt;
  
          &lt;/LinearLayout&gt;
      &lt;/android.support.v7.widget.CardView&gt;
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>and look like this : </p>
  
  <p><a href="https://i.stack.imgur.com/P5fqV.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P5fqV.jpg" alt="enter image description here"></a></p>
  
  <p>but want my card view look like this :</p>
  
  <p><a href="https://i.stack.imgur.com/RnIWG.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RnIWG.jpg" alt="enter image description here"></a></p>
  
  <p>how can i do this ? important is : <strong>do not want give height number like 50dp</strong>
  want give weight cause want in all devices look like pic2 . please help tnx </p>