title: Android Button Border Color
body: <p>I am making Android Button, using following XML.</p>
  
  <p>The output on Preview of Design, shows as below.
  <a href="https://i.stack.imgur.com/CAfRw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/CAfRw.png" alt="enter image description here"></a></p>
  
  <p>However when I run on Device, Samsung Duos. It shows totally different.
  <a href="https://i.stack.imgur.com/84Uo7.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/84Uo7.jpg" alt="enter image description here"></a></p>
  
  <p>How can I set 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;stroke
          android:width="3dp"
          android:color="#d78d79" /&gt;
  
  &lt;/shape&gt;
  </code></pre>
  
  <p>I also get an error in XML, but its working fine. Nothing shown when I mouse hover on error.</p>
  
  <p><a href="https://i.stack.imgur.com/UkWNc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/UkWNc.png" alt="enter image description here"></a></p>
  
  <p>Can any one help?</p>