What is the easiest way to use SVG images in Android?

First you need to import SVG files by the following simple steps.

  1. Right click on your project’s drawable folder (app/res/drawable)
  2. Click New
  3. Select Vector Asset

If the image is available in your computer then select the local svg file.

After that, select the image path. An option to change the size of the image is also available at the right side of dialog if you want to. In this way, the SVG image is imported in your project.

After that, for using this image, use the same procedure:

@drawable/yourimagename

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)