Let's continue customizing our marker.
For example, if I need to display an icon instead of this default marker, you can go and uh, download
an icon, for example like this.
Navigate to drawable folder, then paste.
Make sure the name of the image starting with small letters and no numbers.
The name is target png.
Now I want from you to focus with me.
It's, uh like complicated.
But don't worry, I need to use the bitmap factory dot decode resource.
And here I need to pass two parameters the context and the drawable itself.
Let's start by context.
You can use application context dot resources and r dot drawable dot target the name of the file.
You can notice the thumbnail of the icon appears here.
The second thing we need to do is in the marker instead of custom icon, we need to use custom icon
too.
So here bitmap descriptor factory dot from bitmap.
And here pass the custom icon to okay custom icon to Let's Run.
And here we go.
This is our lovely icon.
You can notice the icon is like enlarging and but actually it's size still the same.
But we are uh we are zooming in okay.
And here you can notice okay this is for the PNG assets.
But for simplicity I'll keep it a custom icon to icon one.
So instead of using this I'm gonna use custom icon one okay.
In order to lecture about the info window and other concepts okay.
And continue with our app.