Note that the reused bitmap must be mutable and of the same size and configuration as the bitmap you load into it. Not sure if this is clear from the video, although it is documented in the API.
Code: http://developer.android.com/shareables/devbytes/BitmapAllocation.zip
Video: http://www.youtube.com/watch?v=rsQet4nBVi8
3 comments:
BitmapAllocation in the title and View Animations in the video, whoops!
@Marc: I'm not seeing that problem, but someone else told me the same thing; maybe some YouTube bug, or a problem with the channel of the videos. Are you seeing the incorrect content in the embedded video above? Or on the youtube page linked above?
Thanks, but how to achieve this on old devices inBitmap only works since HONEYCOMB?
Post a Comment