Creating an icon from vector asset and Image button in Android Studio

Alesha Tivadar
2 min readJul 5, 2020

--

Hi developers! here is the thing. there are several newbies who creating an android application having a problem of how to get the icon, including me bytheway, but as I already figured it out. So let’s get start it

on the res folder you’ll find the drawable folder then select that folder click the right button then will show the following picture

select new and choose the vector asset, it will navigate to the icon option. As displayed below

what next? you guys just click on Clip Art image. Then will shows all the icons of what you need to use.

choose one of those kind of icons then just click ok. in this section I choose swipe vert.

you can also change the colors you wanted by clicking on the Color image button and resizing the icon.

click next

Finish.

Then we can use it on xml file as the following code

for circle layout you can create an xml file inside drawable folder by using this code

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid
android:color="#03A9F4"/>
</shape>

then will show this Image button

--

--