a8301e2eb5a083a73f58331279c86e8ec7b11a48 |
|
22-Aug-2013 |
Mark Wei <markwei@google.com> |
Use Drawables for senders image. Less animation jank, less GC jank, less memory. Protip: When testing sender images, go to your Sent folder. Tons of senders images appear because you are most likely to talk to people in your address book. Rewrite UI to use modular Drawables. It's much easier to understand, since Drawables with different functionality can be composed. Flipping animation is 10x smoother. Handles quick double-tap on senders image correctly. Letter tiles are not allocated bitmaps anymore. They simply draw a rect and a letter to the canvas. We are no longer allocating large bitmaps for every list item. We reuse Bitmaps whenever possible the same way that attachment previews do. Much smaller 339KB cache since we don't share with attachment previews anymore, just enough to fit 10 off-screen contact images. Bug: 10429228 Change-Id: I463b63520d881eefe3974dccf295366831adaf9e
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/FlipDrawable.java
|