title: How to create border at bottom only?
body: <p>I am trying create one app and in my app I am trying to create border at bottom in button,but when I run application it shows border at top only,can anybody tell how to achieve this..following is my xml of UI?.........</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
   android:orientation="horizontal"
  tools:context="com.example.button_pressed_effect_example.MainActivity" &gt;
  
   &lt;Button 
      android:layout_height="wrap_content"
      android:layout_width="wrap_content"
      android:text="One"
      android:id="@+id/button1"
     android:background="@drawable/custom_btn_black_orange"
     android:drawableBottom="@drawable/liti"
  
      /&gt;
  &lt;Button 
      android:layout_height="wrap_content"
      android:layout_width="wrap_content"
      android:text="Two"
      android:id="@+id/button2"
     android:background="@drawable/custom_btn_black_orange"
      /&gt;
  
   &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>liti.xml</p>
  
  <pre><code>      &lt;layer-list /android"&gt;
           &lt;item   android:left="10dp" android:bottom="10dp"&gt;
           &lt;shape android:shape="line"&gt;
  
          &lt;stroke android:width="10dp" android:color="#ffffff" /&gt;
          &lt;/shape&gt;
          &lt;/item&gt;
          &lt;/layer-list&gt;
  </code></pre>
  
  <p>custom_btn_black_orange.xml</p>
  
  <pre><code> &lt;selector &gt;
  
    &lt;item android:state_pressed="true" &gt;
       &lt;shape android:shape="rectangle"  &gt;
  
           &lt;gradient
               android:angle="-90"  
               android:startColor="#5B0B0E"
               android:endColor="#5B0B0E"  /&gt;           
       &lt;/shape&gt;
   &lt;/item&gt;
  &lt;item android:state_pressed="false"&gt;
       &lt;shape android:shape="rectangle"  &gt;
  
           &lt;solid  android:color="#731013"/&gt;      
       &lt;/shape&gt;
   &lt;/item&gt; 
  &lt;item &gt;
      &lt;shape android:shape="rectangle"  &gt;
           &lt;gradient
               android:angle="-90"  
               android:startColor="#5B0B0E"
               android:endColor="#5B0B0E" /&gt;           
       &lt;/shape&gt;
   &lt;/item&gt;
   &lt;/selector&gt;
  </code></pre>
  
  <p>custom_btn_black_orangepressed.xml </p>
  
  <pre><code>    &lt;selector&gt;
  
     &lt;item android:state_pressed="false" &gt;
       &lt;shape android:shape="rectangle"  &gt;
  
           &lt;gradient
               android:angle="-90"  
               android:startColor="#5B0B0E"
               android:endColor="#5B0B0E"  /&gt;           
       &lt;/shape&gt;
  
   &lt;/item&gt;
  &lt;item android:state_pressed="false"&gt;
       &lt;shape android:shape="rectangle"  &gt;
  
           &lt;solid  android:color="#731013"/&gt;      
       &lt;/shape&gt;
   &lt;/item&gt; 
  &lt;item &gt;
      &lt;shape android:shape="rectangle"  &gt;
  
           &lt;gradient
               android:angle="-90"  
               android:startColor="#5B0B0E"
               android:endColor="#5B0B0E" /&gt;           
       &lt;/shape&gt;
   &lt;/item&gt;
   &lt;/selector&gt;
  </code></pre>
  
  <p>Myjava.java</p>
  
  <pre><code>    btn.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View v) {
                 btn.setBackgroundResource(R.drawable.custom_btn_black_orangepressed);
              btn2.setBackgroundResource(R.drawable.custom_btn_black_orange);
          }
      });
  
      btn2.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View v) {
              // TODO Auto-generated method stub
              btn2.setBackgroundResource(R.drawable.custom_btn_black_orangepressed);
              btn.setBackgroundResource(R.drawable.custom_btn_black_orange);
          }
      });
  </code></pre>