Issue
I'm making an Android app in 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 which is XXXHDPI screen, but will it look the same on say HDPI screen without making separate 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.
Solution
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.
Answered By - Subodh Chaudhary
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.