History log of /packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/LetterTileDrawable.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
48b20b26feb886d9e2926ce60316509274ffd831 29-Aug-2014 Brian Attwell <brianattwell@google.com> Increase size of avatar and bussiness letter tile

Don't bother increasing the size of the ic_voicemail_avatar.
This icon isn't used in contexts that require a larger size.

Bug: 17139147
Change-Id: Id0484460cf56f5e04981727648955b0c358c7c02
/packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/LetterTileDrawable.java
888e3d75e24c8046c29966443acfed3f957826d1 12-Aug-2014 Brian Attwell <brianattwell@google.com> Use ic_person_white_64dp with correct padding

UX gave me updated ic_person_white_64dp icons with the correct
amount of padding built inside them.

ag/505983 contained a work around for having ic_person_white_64dp
resources with the wrong amount of padding. This CL reverts this
work around since it is no longer needed.

Bug: 16683381
Change-Id: If0fc283f5e1cfc4e4ac3f20896652da8cd14473b
/packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/LetterTileDrawable.java
6f99ad746dd89fc4998922f1bc60a4818d3d01d8 18-Jul-2014 Brian Attwell <brianattwell@google.com> Update avatar drawable in LetterTileDrawable

Use the same image as QC uses. Except, instead of scaling down
the ~140dp image start with a 64dp image.

The images provided by allen don't have an amount of border built into
it that looks good inside the LetterTileDrawable. Therefore, I wrapped
the image inside a ScaleDrawable. To do this, I changed LetterTileDrawable
to operate on internal drawables instead of internal bitmaps.

Bug: 16290899
Change-Id: I741c3a603d025068614c7004ea61fb349f6d6944
/packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/LetterTileDrawable.java
d4d290d39d14e17683ec86b07a150c9df35505ae 15-Jul-2014 Brian Attwell <brianattwell@google.com> Updated LetterTileDrawable colors.

Now that LetterTileDrawable colors are the same as the colors used by
MaterialColorMapUtils, I unified the colors inside colors.xml and was
able to delete some MaterialColorMapUtils code.

BUG: 15889179
BUG: 16159407
Change-Id: I02b96011a30def913fb1de589aeb7a8c336e2154
/packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/LetterTileDrawable.java
3958162dc78159ef3331dfa7109c8e0d1157c1ba 26-Jun-2014 Brian Attwell <brianattwell@google.com> Update LetterTileDrawable colors

Contacts/Dialer still uses a different hashing function to
pick the colors.

Bug: 15889179
Change-Id: I93746fe12b772743fd98923c7fea331a984bb1e5
/packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/LetterTileDrawable.java
a2389c127b5fa95924769c17fb16e69efca1b513 05-Jun-2014 Brian Attwell <brianattwell@google.com> Expose color of LetterTileDrawable via accessor

The color is needed by ag/479024

Change-Id: I9f18130cba81316a3b99af9b4eaacd1e482601fd
/packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/LetterTileDrawable.java
fb450d3a3e91ff4f60e64c8768df15827dd117d0 04-Jun-2014 Brian Attwell <brianattwell@google.com> Fixed LetterTileDrawable#setColorFilter

Change-Id: I47c488ef21195e709a82c8319684797b1b68ae13
/packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/LetterTileDrawable.java
3f9c2f426058413055fa54c08c69ad9461717658 29-Apr-2014 Yorke Lee <yorkelee@google.com> Add circular photo support to ContactPhotoManager

* Use RoundedBitmapDrawable to draw circular bitmaps

* Add isCircular to DefaultImageRequest, and add circular
support to LetterTileDrawable

* Temporarily disable fading in contact photos using
TransitionImageDrawable

Bug: 13747208

Change-Id: I4d087b2dab701014297912ccb6cfac36ecffc673
/packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/LetterTileDrawable.java
6084726fbdda78bdb16e2d4cc1c3b81c84fd5da1 12-Feb-2014 Yorke Lee <yorkelee@google.com> Add support for letter tile avatars to ContactsPhotoManager

* Add LetterTileDrawable, a custom drawable used to display letter tiles
for contacts without a contact photo, instead of static bitmap resource
drawables.

* Add a class DefaultImageRequest to ContactPhotoManager. This is essentially
a data holder object used to store and retrieve various parameters that
clients can use to configure the way they want their requested letter tile
avatars to be drawn.

* Add LetterTileImageProvider to ContactPhotoManager. LetterTileImageProvider
extends DefaultImageProvider, but returns instances of LetterTileDrawable
instead of BitmapDrawables when a default contact image is needed.

* Add two new APIs to ContactPhotoManager:
getDefaultAvatarForContact - This returns an instance of a LetterTileDrawable,
configured with the display parameters stored in the provided
DefaultImageRequest.
getDefaultAvatarUriForContact - This returns an uri which the
ContactPhotoManager can use to recreate a DefaultImageRequest and hence
a LetterTileDrawable.

* Modify ContactPhotoManager.loadPhoto and loadThumbnail to accept a
DefaultImageRequest as a parameter.

* Modify the following classes to use the new ContactPhotoManager APIs. These
affect both the Dialer and People apps.
ContactEntryListADapter
ContactListAdapter
ContactTileView
PhoneNumberListAdapter

Bug: 13101785
Change-Id: Id1a87b459d6e63c42049739059a3b3ee202af837
/packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/LetterTileDrawable.java