Two imageViews vs one imageView and a canvas

Posted by user3009842 on Stack Overflow See other posts from Stack Overflow or by user3009842
Published on 2014-08-25T04:10:58Z Indexed on 2014/08/25 4:20 UTC
Read the original article Hit count: 137

Filed under:
|
|

I have a bitmap and I want to scale it up to fill an ImageView and overlay the unscaled version of the bitmap on top.

Which would be cheaper (in terms of memory and processor usage)?

  1. Using two ImageViews, one for each version of the bitmap
  2. Using a canvas and drawing on the singular bitmap, using one ImageView

I saw this question about ImageView vs Canvas, but it doesn't address memory/processor concerns. My intuition says two ImageViews may use more RAM, while using a canvas would use more processing power while the drawing occurs.

© Stack Overflow or respective owner

Related posts about android

Related posts about canvas