I have a button , inside which there is an image and text I used shape.xml to give css to button
How can i give css (stroke/border) to the image inside this button
the image is given as drawableTop inside the
Code:
<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"
/>
Shape.xml
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid android:color="#FFF"
/>
<corners
android:bottomLeftRadius="2dp"
android:bottomRightRadius="2dp"
android:topLeftRadius="2dp"
android:topRightRadius="2dp" />
Thanks