question

None-2519 avatar image
0 Votes"
None-2519 asked JessieZhang-2116 answered

What's the proper way to add standard Android icons to the drawables folder?

What's the proper way to add standard Android icons to the drawables folder? Should I use Material icons from a website and download them as SVG and convert them to vector such as XML? In Android, you can add them from some asset menu which I cannot find in Xamarin.

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JessieZhang-2116 avatar image
0 Votes"
JessieZhang-2116 answered

Hello,


Welcome to our Microsoft Q&A platform!

Do you mean the Material Icons ?

Take one icon for example,when we want to download it, we just need to choose the image color we want :

91083-image.png

After we download it ,there are several different folders for different density screens just as follows:

91045-image.png

So, according to our requirement, we can put it into our different drawable folders in our app. And android OS select the image it self by checking the compatible device and its resolution.


Best Regards,


Jessie Zhang


If the response is helpful, please click "Accept Answer" and upvote it.



Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (9.5 KiB)
image.png (3.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.