title: How to correctly update my layout (based weight attribute) with cardview?
body: <p>I am working to update my app with <code>CardCiew</code> widget, I already update some simple layout.</p>
  
  <p>The problem that when I use a <code>LinearLayout</code> set with <code>layout_weight</code> attribute I get a different result I want.</p>
  
  <h2>layout.xml</h2>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:background="@drawable/list_selector"
      android:orientation="horizontal"
      android:id="@+id/technologie_ll_item"&gt;
  
      &lt;android.support.v7.widget.CardView
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"&gt;
  
          &lt;LinearLayout
              android:layout_weight="10"
              android:layout_height="wrap_content"
              android:layout_width="wrap_content"&gt;
  
              &lt;LinearLayout
                  android:layout_width="0dp"
                  android:layout_height="wrap_content"
                  android:layout_weight="2"&gt;
  
                  &lt;de.hdodenhof.circleimageview.CircleImageView
                      android:id="@+id/iv_logo_technologie"
                      android:layout_width="75dp"
                      android:layout_height="75dp"
                      app:border_width="2dp"
                      app:border_color="#99069d78"
                      android:src="@drawable/after"
                      android:paddingLeft="0dp" /&gt;
  
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:layout_width="0dp"
                  android:layout_weight="5"
                  android:layout_height="fill_parent"
                  android:gravity="center_vertical"
                  android:orientation="vertical"&gt;
  
                  &lt;TextView
                      android:id="@+id/tv_nom_technologie"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:textSize="17dp"
                      android:textAllCaps="true"
                      android:paddingLeft="10dp"
                      android:gravity="center_vertical"
                      android:text="Orthodontics"/&gt;
  
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:layout_width="0dp"
                  android:layout_weight="1"
                  android:layout_height="fill_parent"
                  android:gravity="right"
                  android:orientation="horizontal"&gt;
  
                  &lt;ImageView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:src="@drawable/indic" /&gt;
  
              &lt;/LinearLayout&gt;
  
          &lt;/LinearLayout&gt;
  
      &lt;/android.support.v7.widget.CardView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <h1>Result</h1>
  
  <p><img src="https://i.stack.imgur.com/UOUIO.jpg" alt="enter image description here"></p>