So I have created a button in my layout, but I wanted it to be a circle. So I created an .xml drawable like this -
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="#673ab7"/>
<stroke android:width="2sp" android:color="#fff" />
</shape>
Then in the button bit in the layout i added this
android:background="@drawable/circle_button"
But now I wish to have an image inside the circler button. How can I achieve this? Can I simply add something in the drawable xml?
I've tried searching for answers but I am confused to what I should search for.