summaryrefslogtreecommitdiff
path: root/src/com/android/bitmap/drawable/ExtendedBitmapDrawable.java
AgeCommit message (Collapse)Author
2014-12-18Import latest changes.Oleksandr Kyreiev
Change-Id: I27973b3441d3738a85481de9c774da0ac08afd7c
2014-09-10Allow user to choose horizontal crop alignmentJames Kung
Bug: 17272990 Change-Id: I8622d7e837dc1045a9b41c86dc91727bf152c8d3
2014-07-14Import latest bitmap library changes.Mark Wei
Change-Id: Ic3a79a1154fb1329bf4c163ea6aeb32f8bd3857d
2014-03-02CircularBitmapDrawable is now an ExtendedBitmapDrawable. Avatars can now ↵Mark Wei
fade in! Change-Id: I79fae35f0949a17309bce0cffd6b10e7e6d8db2c
2014-01-22Decouple parallaxSpeedMultiplier from setDecodeDimensions().Mark Wei
Expose decode vertical center through ExtendedOptions. Genericize BitmapDrawableImageView#getTypedDrawable(). Bug: 11691744 Change-Id: I62e05ab2136cf031eaf1752dba728156c97c87a6
2014-01-17Restore bounds when we recreate the placeholder and progress drawables.Mark Wei
Change-Id: I9b63360a2bd34355c87528d143139764ec9aec38
2014-01-06Allow non-changeable placeholder and progress drawable fields in ExtendedOptionsMark Wei
to be modified after ExtendedBitmapDrawable creation. Change-Id: Ia24ed7665df2a7ebe4359908c578a15e11e3801c
2013-12-08Allow placeholder drawable to be sized by the client. First try to use theMark Wei
bounds, then try to use the intrinsic bounds. When a key is null, set load state to FAILED instead of UNINITIALIZED. The difference is that FAILED shows the placeholder as a static image while UNINITIALIZED hides it. Fix bug in BitmapDrawableImageView where detaching from the window would set its drawable to null, throwing away state. Change-Id: I0b3f6c931d750ec4042e13bc1cbcf2d63e260168
2013-12-02Fix state changes bug that caused bitmaps in the cache to be faded in instead ofMark Wei
instantly shown. Change-Id: Ic2ba2d2ebe01badc881d1c43071a42bcf6f2b687
2013-11-22Background color of TileDrawable must be opaque.Mark Wei
Change-Id: I6ac7b4ba6f68181424064377464e1896c2129f13
2013-11-21Clarify ExtendedOptions validation documentation.Mark Wei
Change-Id: Ib89cb3268866888003567d76da45f0d6980dcc76
2013-11-20Allow clients to override draw(). This is useful for clients who wish toMark Wei
provide a border on top of all drawable layers, for instance. Change-Id: Ibcb4218bf213d9b0cc02256efdb6346043c0ee7e
2013-11-11Fix NPE in Robolectric tests.Mark Wei
Change-Id: Ib9422cd23940409c8301ea59f72e041972f5c58b
2013-11-08Have validate() ensure parllaxMultiplier is not 1Sam Blitzstein
If the parallax feature is turned on, validate() should check that parallaxSpeedMultiplier != 1. Change-Id: Id660c300cf86db62778f77acb2890a0ca9e8f6e0
2013-11-07Allow clients to customize the placeholder pulse animation.Mark Wei
Change-Id: I73564b39333c10876b4dbd4532da327b8cf45265
2013-11-05Change state from UNINITIALIZED to NOT_YET_LOADED earlier.Mark Wei
Relax restrictions on subclass. Change-Id: I456ed06e244de0ab794372b74094f9e94ed4b3f9
2013-11-04Add some documentation.Mark Wei
Change-Id: Ie32f29997946714d10318b111fabf4ed04e042e3
2013-11-04Modify ExtendedBitmapDrawable to be more flexible for clients.Mark Wei
Introducing ExtendedOptions: Clients can now specify the features they want out of a ExtendedBitmapDrawable: 1) Ordered display (decode aggregator) 2) Parallax 3) State changes (placeholder and/or progress bar) Clients can also specify parameters to those features. These parameters can be modified and changes take effect immediately. Change-Id: I15e4f1dbc20473db6798888b07b4bd34c712db21
2013-10-31Make ExtendedBitmapDrawable extend BasicBitmapDrawable.Mark Wei
Modify sample app to use ExtendedBitmapDrawable with the following features: Parallax, Placholder and progress, Decode aggregator. Change-Id: Ia9e0fe6e6fdab018077a465ddf2a40109efbddf7
2013-10-29Relax BasicBitmapView to allow non-BasicBitmapDrawables to be assigned to it.Mark Wei
Rename BasicBitmapView to BitmapDrawableImageView. Allow asynchronous creating of file. Change-Id: I0407bf0bf36ae92ce45d2175121a15483f8f72f2
2013-10-21Modifications to bitmap library to make integrating into BigTop simpler.Mark Wei
RequestKey returns ParcelFileDescriptor instead of AssetFileDescriptor to make it easier to read files off of internal cache. Do not assume we want a top-1/3 crop. Provide vertical center in DecodeTask constructor. Move DecodeTask params into DecodeOptions to avoid param bloat. Add option to not limit bitmap density in BasicBitmapDrawable. Name AsyncTask threads in pool. Link DEBUG flags. Change-Id: I9416ac647c0c4935ee488b7db43cccd9de565c54
2013-10-16Change BitmapRequestKey to be more cleanly implementable.Sam Blitzstein
Change-Id: I831586688605e6c6c2f2f7a879c6be23175f71de
2013-10-15Initial commit from Gmail's Cache system.Sam Blitzstein
Change-Id: I14168ab3bc02b77399a1812f62bd77ac797232c5