title: margin and layout in android
body: <p>I want to create card like - </p>
  
  <p><a href="https://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0Bzhp5Z4wHba3MXJBM2FCcDVscjg/components_cards34.png" rel="nofollow"><img src="https://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0Bzhp5Z4wHba3MXJBM2FCcDVscjg/components_cards34.png" alt="pictures"></a>, </p>
  
  <p>I try to use <code>margin</code>, but not win with this idea. I try create for all element personal view and use <code>padding</code> or <code>margin</code> but I not have result.</p>
  
  <p>I have code like that </p>
  
  <pre><code>&lt;android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/tools"
      xmlns:card_view="http://schemas.android.com/apk/res-auto"
      android:id="@+id/card_view"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"&gt;
  
      &lt;RelativeLayout
          android:id="@+id/rlCardBlock"
          style="@style/Widget.CardContent"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
  
  
          &lt;TextView
              android:id="@+id/title"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginTop="24dp"
              android:maxLines="2"
              android:textStyle="bold"
              android:text="title"/&gt;
  
          &lt;TextView
              android:id="@+id/content"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_below="@id/title"
              android:maxLines="5"
              android:text="content" /&gt;
  
          &lt;ImageButton
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentEnd="true"
              android:layout_alignParentRight="true"
              android:layout_below="@id/content"
              android:layout_marginBottom="8dp"
              android:background="@null"
              android:src="@drawable/ic_more_vert_black_36dp" /&gt;
      &lt;/RelativeLayout&gt;
  &lt;/android.support.v7.widget.CardView&gt;
  </code></pre>
  
  <p>Thank you for your attentions. </p>