commit | b6ec2afe9710112214d79b36b2233fef6a52845a | [log] [tgz] |
---|---|---|
author | Mark Wei <markwei@google.com> | Sun Dec 08 04:34:27 2013 -0800 |
committer | Mark Wei <markwei@google.com> | Sun Dec 08 04:37:01 2013 -0800 |
tree | bb2c9e882208ba47ac77017a2d59d3e58056d668 | |
parent | 19a41ec7aaace2ab0b117d0baaeb544c5667b240 [diff] |
Allow placeholder drawable to be sized by the client. First try to use the 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