android


Vector Drawables vs Bitmap in terms of RAM (Android)


In terms of RAM utilized by a drawable when it is rendered on on the screen, does it make any difference if the drawable is a vector or a bitmap?
I understand that vectors take less storage space, but I'm asking about the RAM needed in order to render it, since in theory, it is still being drawn onto a canvas with the same amount of pixels in the end.
Thanks!
From the document I read sometime ago (same question with you).
The different between these 2 options is the size of APK file after all when you release. SVG will help you save size of apk.
The initial loading of a vector graphic can cost more CPU cycles than the corresponding raster image. Afterward, memory use and performance are similar between the two. We recommend that you limit a vector image to a maximum of 200 x 200 dp; otherwise, it can take too long to draw.
Being drawn on view will have those 2 options having same RAM (memory) consumed.
My reference source: https://developer.android.com/studio/write/vector-asset-studio.html#about

Related Links

React native: catch volume buttons press (not for volume adjusting)
Not able to populate text in autoCompleteTextView in android
why Broadcast Receiver Don't work for service application android?
Showing big view notifications with Firebase Cloud Messaging
Not able to upload an Image in Firebase Storage
Error with installing app on android device by AndroidStudio
How to make several mobile devices (both iOS and Android) communicate without using internet
OnClickListener doesn't change view in Custom BaseAdapter
Android studio palette is missing
How to parse inner JSON object using Gson in Android
Sending POST within BroadcastReceiver
In Exoplayer,How to reload and resume playback automatically?
Draw route using points slowly
cropped image and save it into mysqldatabse
The right way to implement twitter authentication
ConstraintLayout messes up after I change the src of an ImageView

Categories

HOME
grok
search
ecmascript-6
object
zend-framework
seo
edge
web-hosting
modal-dialog
pattern-matching
naivebayes
pybossa
zerobrane
android-7.0-nougat
foreign-keys
boost-icl
solrcloud
googlebot
user-experience
angular-routing
flask-sqlalchemy
gmock
beta
ckfinder
pic32
jaws
ntp
constexpr
userdefaults
livelink
git-squash
clickjacking
imx6
raft
cd
bc
setup.py
tasm
photos
vaadin-charts
strftime
openal
spring-integration-sftp
x-ray
payara-micro
boxing
skin
renaming
pocketsphinx-android
donations
change-tracking
taocp
pytables
webjars
iotivity
wso2developerstudio
mapinfo
ng-grid
invoke-sqlcmd
jbase
libvlc
themoviedb-api
lazybones
django-urls
batik
snoop
xmltype
delayed-execution
at-job
packet-sniffers
browserify-shim
crowd
machine-instruction
psr-4
paw
wcm
encryption-asymmetric
with-statement
websphere-esb
menubar
script#
actiondispatch
panda3d
jquery-blockui
predicatebuilder
fitbounds
isa-swizzling
google-ajax-api
msr
diagrams
binomial-heap
pos-for-.net
duplex
echo3
sifr3
contentpresenter

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App