summaryrefslogtreecommitdiff
path: root/src/com/android/mail/utils/BitmapUtil.java
Commit message (Collapse)AuthorAgeFilesLines
* Allow LetterTileProvider to use a defined fontsizeRégis Décamps2014-09-091-0/+44
| | | | | | | | | | Also refactors the bitmap cropping into a circle from MessageHeaderView into BitmapUtil and makes NotificationUtils use that method as well. Bug: 16875798 SetupAddressesActivity: Show letter avatar if none Bug: 16378212 Draw letter tile for non-Gmail avatars in Account switcher Change-Id: I375990e3df331ff9952652d5f06a4f4f8d133e48
* Use Drawables for senders image. Less animation jank, less GC jank, less memory.Mark Wei2013-09-131-0/+175
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