title: How to add stroke/border for drawable image used inside button
body: <p>I have a button , inside which there is an image and text
  I used <strong>shape.xml</strong> to give css to button</p>
  
  <p><a href="https://i.stack.imgur.com/eE11a.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eE11a.jpg" alt="enter image description here"></a></p>
  
  <p>How can i give css (stroke/border) to the image inside this button</p>
  
  <p><a href="https://i.stack.imgur.com/UlnFT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UlnFT.jpg" alt="enter image description here"></a></p>
  
  <p>the <strong>image</strong> is given as <strong>drawableTop</strong> inside the </p>
  
  <p>Code:</p>
  
  <pre><code>&lt;Button
              android:layout_margin="8dp"
              android:onClick="CollegeNews"
              android:layout_width="0dp"
              android:layout_weight="1"
              android:layout_height="wrap_content"
              android:drawableTop="@drawable/doctor"
              android:drawablePadding="30dp"
              android:drawableBackground="#95a5a6"
              android:padding="15dp"
              android:gravity="center"
              android:text="Doctor"
              android:background="@drawable/shape"
              /&gt;
  </code></pre>
  
  <p>Shape.xml</p>
  
  <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android" &gt;
  &lt;solid android:color="#FFF"
      /&gt;
  
  &lt;corners
      android:bottomLeftRadius="2dp"
      android:bottomRightRadius="2dp"
      android:topLeftRadius="2dp"
      android:topRightRadius="2dp" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>Thanks</p>