title: how to set border linear layout on top and bottom
body: <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="#ffffff"
      android:orientation="vertical" &gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical" &gt;
  
          &lt;LinearLayout
              android:id="@+id/home"
              android:layout_width="match_parent"
              android:layout_height="60dip"
              android:layout_marginRight="5dip"
              android:src="@anim/linearsavelocationbackground"
              android:weightSum="1" &gt;
  
              &lt;ImageView
                  android:id="@+id/imageView1"
                  android:layout_width="30dip"
                  android:layout_height="30dip"
                  android:layout_marginTop="15dip"
                  android:layout_weight=".2"
                  android:src="@drawable/homestatus" /&gt;
  
              &lt;TextView
                  android:id="@+id/textView1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginTop="17dp"
                  android:layout_weight=".6"
                  android:gravity="center_vertical"
                  android:paddingLeft="10dp"
                  android:text="Home"
                  android:textColor="#3a3838"
                  android:textSize="15dp"
                  android:textStyle="bold" /&gt;
  
              &lt;ImageView
                  android:id="@+id/homeimage"
                  android:layout_width="30dip"
                  android:layout_height="30dip"
                  android:layout_marginRight="5dip"
                  android:layout_marginTop="15dp"
                  android:layout_weight="0.20"
                  android:src="@drawable/deletingright" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:id="@+id/office"
              android:layout_width="match_parent"
              android:layout_height="60dip"
              android:layout_marginRight="5dip"
              android:background="#ffffff"
              android:src="@anim/linearsavelocationbackground"
              android:weightSum="1" &gt;
  
              &lt;ImageView
                  android:id="@+id/imageView1"
                  android:layout_width="30dip"
                  android:layout_height="30dip"
                  android:layout_marginTop="15dip"
                  android:layout_weight=".2"
                  android:src="@drawable/work" /&gt;
  
              &lt;TextView
                  android:id="@+id/textView1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginTop="17dp"
                  android:layout_weight=".6"
                  android:gravity="center_vertical"
                  android:paddingLeft="10dp"
                  android:text="Home"
                  android:textColor="#3a3838"
                  android:textSize="15dp"
                  android:textStyle="bold" /&gt;
  
              &lt;ImageView
                  android:id="@+id/homeimage"
                  android:layout_width="30dip"
                  android:layout_height="30dip"
                  android:layout_marginRight="5dip"
                  android:layout_marginTop="15dp"
                  android:layout_weight="0.20"
                  android:src="@drawable/deletingright" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>bacground for border </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
   &lt;shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"&gt;
     &lt;corners android:radius="20dp"/&gt; 
     &lt;padding android:left="10dp" android:right="10dp" android:top="10dp" android:bottom="10dp"/&gt;
     &lt;solid android:color="#CCCCCC"/&gt;
   &lt;/shape&gt;
  </code></pre>
  
  <p>This is my code i am trying to display border top and bottom on Linarlayout but i am unable to show effect i have to set border top and bottom of home Linear Layout and office linear layout i am tried to set that but effect is not coming please check where am doing mistake.</p>