am 6b532800: Merge change 6478 into donut
Merge commit '6b5328006ff9e844713eb26b40621d72bee0bdd1' * commit '6b5328006ff9e844713eb26b40621d72bee0bdd1': Fix ShapeDrawable.inflateTag() to accept proper dimension specs for padding
This commit is contained in:
committed by
The Android Open Source Project
commit
eabdb7c252
@@ -278,10 +278,15 @@ public class ShapeDrawable extends Drawable {
|
||||
if (name.equals("padding")) {
|
||||
TypedArray a = r.obtainAttributes(attrs,
|
||||
com.android.internal.R.styleable.ShapeDrawablePadding);
|
||||
setPadding(a.getInt(com.android.internal.R.styleable.ShapeDrawablePadding_left, 0),
|
||||
a.getInt(com.android.internal.R.styleable.ShapeDrawablePadding_top, 0),
|
||||
a.getInt(com.android.internal.R.styleable.ShapeDrawablePadding_right, 0),
|
||||
a.getInt(com.android.internal.R.styleable.ShapeDrawablePadding_bottom, 0));
|
||||
setPadding(
|
||||
a.getDimensionPixelOffset(
|
||||
com.android.internal.R.styleable.ShapeDrawablePadding_left, 0),
|
||||
a.getDimensionPixelOffset(
|
||||
com.android.internal.R.styleable.ShapeDrawablePadding_top, 0),
|
||||
a.getDimensionPixelOffset(
|
||||
com.android.internal.R.styleable.ShapeDrawablePadding_right, 0),
|
||||
a.getDimensionPixelOffset(
|
||||
com.android.internal.R.styleable.ShapeDrawablePadding_bottom, 0));
|
||||
a.recycle();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user