title: How to apply stroke to a button specific sides in android
body: <p>How can I apply stroke to a button's only two sides that is LEFT border and RIGHT border? in android.</p>
  
  <p>I have apply the following code but it's not working</p>
  
  <pre><code>&lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;!-- This is the main color --&gt;
  &lt;item&gt;
        &lt;shape&gt;
              &lt;solid android:color="#EEEEEE" /&gt;
        &lt;/shape&gt;
  &lt;/item&gt;
  
  &lt;!-- This is the line --&gt;
  &lt;item android:right="1dp"&gt;
       &lt;shape&gt;
             &lt;solid android:color="#333333" /&gt;
       &lt;/shape&gt;
  &lt;/item&gt;
  
  &lt;item android:left="1dp"&gt;
      &lt;shape &gt;
          &lt;solid android:color="#333333"/&gt;
      &lt;/shape&gt;
  &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>