title: Create simple Card layout android
body: <p>I want to create a simple card layout like this image </p>
  
  <p><a href="https://i.stack.imgur.com/MhkCB.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MhkCB.jpg" alt="enter image description here"></a></p>
  
  <p>this is my layout</p>
  
  <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"
      xmlns:fresco="http://schemas.android.com/apk/res-auto"
      android:orientation="vertical" android:layout_width="match_parent"
      android:layout_height="wrap_content"&gt;
  
      &lt;android.support.v7.widget.CardView
          android:layout_width="match_parent"
          android:layout_height="200dp"
          android:layout_margin="3dp"
          android:id="@+id/offer_card"&gt;
  
          &lt;LinearLayout
              android:orientation="horizontal"
              android:layout_width="wrap_content"
              android:layout_height="match_parent"
              android:layout_gravity="right"&gt;
  
              &lt;LinearLayout
                  android:orientation="vertical"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:layout_weight="1.5"&gt;
  
                  &lt;RelativeLayout
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:layout_weight="0.3"&gt;
                      &lt;com.facebook.drawee.view.SimpleDraweeView
                          android:id="@+id/img_offer"
                          android:layout_width="match_parent"
                          android:layout_height="match_parent"
                          android:layout_alignParentLeft="true"
                          fresco:placeholderImage="@drawable/backgrondlayout2"
                          fresco:actualImageScaleType="centerCrop" /&gt;
  
                      &lt;com.facebook.drawee.view.SimpleDraweeView
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
  
                          android:id="@+id/img_logo"
                          android:layout_margin="10dp"
                          fresco:placeholderImage="@drawable/ic_launcher"
                          fresco:actualImageScaleType="centerCrop" /&gt;
  
  
                      &lt;TextView
                          android:text="Title"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_below="@+id/img_logo"
                          android:layout_alignEnd="@+id/img_logo"
                          android:id="@+id/txt_name"
                          android:textAppearance="@style/TextAppearance.AppCompat.Large"
                          android:textColor="@color/white" /&gt;
  
                  &lt;/RelativeLayout&gt;
  
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:orientation="vertical"
                  android:layout_width="wrap_content"
                  android:layout_height="match_parent"
                  android:padding="4dp"
                  android:layout_weight="1"&gt;
  
                  &lt;TextView
                      android:text="TitleOfOffer is here sgffs"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:id="@+id/txt_Title"
                      android:textAppearance="@style/TextAppearance.AppCompat.Title"
                      android:fontFamily="sans-serif-medium"
                      android:layout_weight="0.2"
                      android:textAlignment="textEnd" /&gt;
  
                  &lt;TextView
                      android:text="this is a simple discription with losts of text sjdun a;daiwn adwi"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:id="@+id/txt_discription"
                      android:layout_weight="0.2"
                      android:textAlignment="textEnd" /&gt;
  
                  &lt;ImageView
                      xmlns:android="http://schemas.android.com/apk/res/android"
                      android:src="@android:drawable/divider_horizontal_textfield"
                      android:layout_width="fill_parent"
                      android:layout_height="wrap_content"
                      android:scaleType="fitXY"
                      android:paddingBottom="1dp"
                      android:layout_marginLeft="10dp"
                      android:layout_marginRight="10dp" /&gt;
                  &lt;TextView
                      android:text="Date"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:id="@+id/txt_Date"
                      android:textAlignment="textEnd"
                      android:drawableRight="@drawable/ic_directions_black_24dp" /&gt;
  
                  &lt;TextView
                      android:text="Distance"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:id="@+id/txt_distance"
                      android:textAlignment="textEnd"
                      android:drawableRight="@drawable/ic_settings_black_24dp"
                      android:hapticFeedbackEnabled="false"
                      android:layoutDirection="rtl" /&gt;
  
              &lt;/LinearLayout&gt;
  
          &lt;/LinearLayout&gt;
      &lt;/android.support.v7.widget.CardView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>and this is result</p>
  
  <p><a href="https://i.stack.imgur.com/epY60.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/epY60.jpg" alt="enter image description here"></a></p>
  
  <p>well as you can see left image highly is depended in texts on right. How can I reform this layout and make it stable, because by changing in texts the images will move, Also I have added one image (<code>img_logo</code>) which does not appear at all.Can you please help me find a good solution to reform my layout?
  thanks</p>