OSDN Git Service

Fix #2018814: System cannot correctly render assets with "wrap_content" attribute...
authorDianne Hackborn <hackbod@google.com>
Wed, 29 Jul 2009 22:41:19 +0000 (15:41 -0700)
committerDianne Hackborn <hackbod@google.com>
Thu, 30 Jul 2009 02:44:01 +0000 (19:44 -0700)
commit3945ae5065ec62ed267e1aaf4cfc160c5eb6a79e
tree09e0a70b87f84d145fb74c607455695488eaf1ac
parentd8475b75e6fc33416b892c44136ee9c16f79ed81
Fix #2018814: System cannot correctly render assets with "wrap_content" attribute in QVGA

It turns out we were not returning the density for anything retrieved from a
TypedArray...  which basically means any bitmap references from a layout or style...!!!

This is now fixed.

Also fiddle with the density compatibility mode to turn on smoothing in certain situations,
helping the look of things when they need to scale and we couldn't do the scaling at
load time.
include/utils/ResourceTypes.h
libs/utils/ResourceTypes.cpp