summaryrefslogtreecommitdiff
path: root/src/com/android/mail/bitmap/AccountAvatarDrawable.java
Commit message (Collapse)AuthorAgeFilesLines
* Prevent contact icons from croppingJin Cao2014-09-261-181/+10
| | | | | | | | | | | | | | | | | | | | | | The main issue is caused by DecodeTask when the decoded bitmap is bigger than the desired size. In some situations, the algorithm will crop the decoded bitmap down to the desired size. Since the size returned from the API is always capped at 96px by 96px, we can just use that when building our bitmap buffer size so that DecodeTask will rarely (I say rarely because it's possible for the user to upload a 10px by 10px contact photo, but that is extremely rare considering how big 96x96 is) have to crop the resulting image when decoding. The destination (either ImageView or an image drawable) will then scale the image accordingly. I also noticed a LOT of overlap between AccountAvatarDrawable and ContactDrawable, so I refactored them into a common base class and allow child classes to override default drawable. b/17319292 Change-Id: I96b9fe39769e434fb45cebe11f9699d3259960df
* mini-drawer. new tablet UI.Andy Huang2014-08-011-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | New MiniDrawerView class for a minimized drawer UI with shortcuts to the main drawer logic to switch accounts and folders. The "drawer" is now always visible except in portrait conversation view. Can't easily use an actual DrawerLayout because: -drawers usually occlude other views, they don't push -we have that omnipresent 'mini' version -we want custom control over dragging to trigger a fancy animation (not just edge swipe!) (I'll revisit this later.) Even ActionBarDrawerToggle alone can't be used w/o DrawerLayout, so for now, all of this drawer logic (dragging not yet implemented) is from scratch. TwoPaneLayout no longer "shifts" its panes to transition from TL->CV in landscape; the panes are now fixed in position. Not yet implemented is a 'conversation-visible-but-not-marked-read' state necessary to avoid the initial gray expanse there right now. Bug: 16147175 Change-Id: I021aaff15afebb76db6722265e2a592213674405
* Implement circular icons in Conversation ListJames Lemieux2014-07-151-2/+3
| | | | | | | | | | This crosscuts three UI elements: - the border around contact images - the border around letter tiles - the border around checkmarks Change-Id: I86dee47282cded696d7658a87e69223244358d68
* Replace all references to UnifiedEmail's com.android.oldbitmap withJames Lemieux2014-07-111-17/+27
| | | | | | | | | equivalent usage of framework's com.android.bitmap. A small refactor of AccountAvatarDrawable.drawBitmap(...) is also included which produces no functional change. Change-Id: Ic67690cde56de6ca691ac8647ef02865b766ca62
* Rename com.android.bitmap to com.android.oldbitmapScott Kennedy2014-03-271-3/+3
| | | | | | | This is causing some conflicts, and we want to replace this with the new library in the near future. Change-Id: Ie607e20a96861a6282e27410fea859f0ee1737cd
* Change the layout of the account selectorMartin Hibdon2014-03-261-0/+194
b/12099292 Change-Id: Ie14ab2a534bacd915421a7083c9c3e3cc6b01a4b