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

2D Rectangle Collision detection in Android
urimatcher in android content provider
ListAdapter from MySQL Database Arrays
How do you make it so that at the end of a process, the ongoing notification vibrates and plays sound?
Android: Looping through views
Launch Preinstalled App from activity (Google Voice Search) Android
using android.net.rtp
How do I parse a very long String in xml?
searching contacts in android by voice recognition
How to set locale to TTS engine dynamically?
how to apply random function into button array in android
Not able to Login after connect Android client with local XMPP server
Mo Pub add doesnot load
Finding the point on the progressbar where the surface was clicked
Android Autocomplete textview onitemclicklistener not working
Android Source: Repo not displaying any initialization message

Categories

HOME
batch-file
algorithm
cygwin
azure-stream-analytics
paraview
jax-rs
obfuscation
shiro
knitr
seo
newrelic
square
polling
jquery-ui
boto3
special-characters
tput
pybossa
gource
eip
flatpak
bitnami
azure-iot-hub
symfony-2.8
symfony-console
connector
gmm
topology
guzzle
gulp-watch
systemtime
postscript
gmock
roundup
perlbrew
jboss6.x
dapper-extensions
onload
mat
tpm
jaws
panoramas
anki
git-squash
twos-complement
openwhisk
indy10
numpy-broadcasting
video-capture
git-rewrite-history
opensmpp
tasm
skylink
bindingnavigator
http-request
placeholder
dapper-simplecrud
monkey-testing
opencmis
optimizely
ovf
ntvs
libgphoto2
corruption
semantic-logging
oracleclient
filehandle
bbpress
reshape
custom-lists
file-uri
nikeplus-api
clipboard.js
swizzling
createprocess
yajsw
html-to-pdf
user-management
atan2
java-money
dllimport
fiware-monitoring
google-books
text-search
dulwich
skspritenode
android-broadcast
ejb-2.x
at-job
kissfft
lnk
xml-dsig
buffering
fpdi
vbe
away3d
oocss
observium
jquery-1.9
jquery-blockui
uimanageddocument
saleslogix
u2netdk
winmain
xcelsius
svk
metaweblog
ie-compatibility-mode
interop-domino
todos
leader

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