Home > Net >  Are SVG files scalable in android studio
Are SVG files scalable in android studio

Time:10-25

Im making a Android app im Android Studio and was wondering if I import a SVG file will it be scaled down or up to fit every screen.

For example it looks good on my S20FE witch is XXXHDPI screen but will it look same on say HDPI screen without making seperate XML Density files

Edit: I do not have any device with smaller density and for some reason a virtual phone that can be run in android studio doesn't work for me.

CodePudding user response:

According to https://developer.android.com/studio/write/vector-asset-studio , "Using vector drawables instead of bitmaps reduces the size of your APK because the same file can be resized for different screen densities without loss of image quality." So, same SVG will be scaled depending upon the screen size.

  • Related