title: How to give the space between two linear layout in Android
body: <p>I am using following code to generate the page. I am able to make the space between linear layout which is just below the another one. But when i am trying to do between two linear layout which are beside to each other its not working for me. Sorry may be i have not explained properly but when you will see my code you will be able to understand my problem.</p>
  <h3>Top and bottom have space but in top two linear layouts are there but i am not able to make space between them.</h3>
  <p>This what i want to make :</p>
  <p><img src="https://i.stack.imgur.com/7KAOW.jpg" alt="enter image description here" /></p>
  <p>Here i am pasting my code:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
   android:layout_width=&quot;match_parent&quot;
   android:layout_height=&quot;match_parent&quot; &gt;
  
  
  &lt;ImageView
      android:id=&quot;@+id/userImage&quot;
      android:layout_width=&quot;150dp&quot;
      android:layout_height=&quot;50dp&quot;
      android:layout_centerHorizontal=&quot;true&quot;
      android:contentDescription=&quot;@string/products_category&quot; /&gt;
  
    &lt;TextView
      android:id=&quot;@+id/userName&quot;
      android:layout_width=&quot;wrap_content&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:layout_below=&quot;@+id/userImage&quot;
      android:layout_centerHorizontal=&quot;true&quot;
      android:singleLine=&quot;true&quot;
      android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot;
      android:textColor=&quot;@color/black&quot; /&gt;
  
  
      &lt;LinearLayout
          android:layout_below=&quot;@+id/userName&quot;
          android:id=&quot;@+id/firstLinear&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_gravity=&quot;center&quot;
          android:orientation=&quot;horizontal&quot;
          android:layout_centerInParent=&quot;true&quot;
          android:layout_marginLeft=&quot;80dp&quot;
          android:paddingTop=&quot;25dp&quot;&gt;
  
          &lt;LinearLayout
              android:layout_width=&quot;100dp&quot;
              android:layout_height=&quot;125dp&quot;
              android:background=&quot;@color/black&quot;
              android:orientation=&quot;vertical&quot;
              android:layout_gravity=&quot;center&quot;&gt;
  
              &lt;TextView
                  android:id=&quot;@+id/userLocationText&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:singleLine=&quot;true&quot;
                  android:text=&quot;@string/location_text&quot;
                  android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot;
                  android:textColor=&quot;@color/white&quot;
                  android:layout_gravity=&quot;center&quot; /&gt;
  
              &lt;ImageView
                  android:id=&quot;@+id/userLocationImage&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:background=&quot;@drawable/location_icon&quot;
                  android:contentDescription=&quot;@string/products_category&quot;
                  android:layout_gravity=&quot;center&quot; /&gt;
  
              &lt;TextView
                  android:id=&quot;@+id/userLocation&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:singleLine=&quot;true&quot;
                  android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot;
                  android:textColor=&quot;@color/white&quot;
                  android:layout_gravity=&quot;center&quot; /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:layout_width=&quot;100dp&quot;
              android:layout_height=&quot;125dp&quot;
              android:background=&quot;@color/black&quot;
              android:orientation=&quot;vertical&quot;&gt;
  
              &lt;TextView
                  android:id=&quot;@+id/userZoneText&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:singleLine=&quot;true&quot;
                  android:text=&quot;@string/zone_text&quot;
                  android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot;
                  android:textColor=&quot;@color/white&quot;
                  android:layout_gravity=&quot;center&quot; /&gt;
  
              &lt;ImageView
                  android:id=&quot;@+id/userZoneImage&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:background=&quot;@drawable/zone_icon&quot;
                  android:contentDescription=&quot;@string/products_category&quot;
                  android:layout_gravity=&quot;center&quot; /&gt;
  
              &lt;TextView
                  android:id=&quot;@+id/userZone&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:singleLine=&quot;true&quot;
                  android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot;
                  android:textColor=&quot;@color/white&quot;
                  android:layout_gravity=&quot;center&quot; /&gt;
          &lt;/LinearLayout&gt;
  
      &lt;/LinearLayout&gt;
    &lt;LinearLayout
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_gravity=&quot;center&quot;
          android:orientation=&quot;horizontal&quot;
          android:layout_below=&quot;@+id/firstLinear&quot;
          android:padding=&quot;5dp&quot;
          android:layout_centerInParent=&quot;true&quot;&gt;
          &lt;LinearLayout
              android:layout_width=&quot;100dp&quot;
              android:layout_height=&quot;125dp&quot;
              android:background=&quot;@color/black&quot;
              android:orientation=&quot;vertical&quot; 
              android:paddingRight=&quot;5dp&quot; &gt;
  
              &lt;TextView
                  android:id=&quot;@+id/userPointsText&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:singleLine=&quot;true&quot;
                  android:text=&quot;@string/points_text&quot;
                  android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot;
                  android:textColor=&quot;@color/white&quot;
                  android:layout_gravity=&quot;center&quot; /&gt;
  
              &lt;ImageView
                  android:id=&quot;@+id/userPointsImage&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:background=&quot;@drawable/points_icon&quot;
                  android:contentDescription=&quot;@string/products_category&quot;
                  android:layout_gravity=&quot;center&quot; /&gt;
  
              &lt;TextView
                  android:id=&quot;@+id/userPoints&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:singleLine=&quot;true&quot;
                  android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot;
                  android:textColor=&quot;@color/white&quot;
                  android:layout_gravity=&quot;center&quot; /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:layout_width=&quot;100dp&quot;
              android:layout_height=&quot;125dp&quot;
              android:background=&quot;@color/black&quot;
              android:orientation=&quot;vertical&quot;&gt;
  
              &lt;TextView
                  android:id=&quot;@+id/userLevelText&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:singleLine=&quot;true&quot;
                  android:text=&quot;@string/level_text&quot;
                  android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot;
                  android:textColor=&quot;@color/white&quot;
                  android:layout_gravity=&quot;center&quot; /&gt;
  
              &lt;ImageView
                  android:id=&quot;@+id/userLevelImage&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:background=&quot;@drawable/level_icon&quot;
                  android:contentDescription=&quot;@string/products_category&quot;
                  android:layout_gravity=&quot;center&quot; /&gt;
  
              &lt;TextView
                  android:id=&quot;@+id/userLevel&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:singleLine=&quot;true&quot;
                  android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot;
                  android:textColor=&quot;@color/white&quot;
                  android:layout_gravity=&quot;center&quot; /&gt;
          &lt;/LinearLayout&gt;
    &lt;/LinearLayout&gt;
  </code></pre>
     
  <p>Thanks a lot...</p>