>                                                Drawable s =
> mCtx.getResources().getDrawable(R.drawable.symbol_icon);
> Where s is a local variable to rendering. Suppose I call this 37
> times.
> Am I to assume that Android will do something smart like create only
> one bitmap for this resource even if it is used 37 times?

Drawables loaded from resources share as much data as possible. In
this case, the 37 instances would use the same Bitmap data.

-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to