OSDN Git Service

Fix ShapeDrawable.inflateTag() to accept proper dimension specs for padding
authorPhil Dubach <phillipd@google.com>
Wed, 8 Jul 2009 16:43:49 +0000 (09:43 -0700)
committerPhil Dubach <phillipd@google.com>
Wed, 8 Jul 2009 16:43:49 +0000 (09:43 -0700)
commit90cfa9df3f3b586eae49ee2d2533a05238d391a4
tree1f37854e8ed63d59692b4f969eca97e8e235f20b
parent0d725f7d5a7efd9dc63f6ddb67a619d659bb4428
Fix ShapeDrawable.inflateTag() to accept proper dimension specs for padding

ShapeDrawable.inflateTag() handles the 'padding' tag with the standard
attributes android:left, etc.  The attribute values for these standard
attributes should be dimension specifications, e.g. '4dp'.
ShapeDrawable.inflateTag() was wrongly parsing the attribute values as plain
integers.
graphics/java/android/graphics/drawable/ShapeDrawable.java