]> git.saurik.com Git - android/aapt.git/commit
Embed layout padding in nine patch images
authorAmith Yamasani <yamasani@google.com>
Wed, 4 Apr 2012 17:27:15 +0000 (10:27 -0700)
committerAmith Yamasani <yamasani@google.com>
Wed, 4 Apr 2012 19:05:59 +0000 (12:05 -0700)
commit89fa317efaaae504c319f55620f2b1a73b0280f1
tree248b3ca9685df3bebac9565899f57301aa71ee5d
parent629b2ffcac37ede5a0c36e7eb49087fe3cc5c3a5
Embed layout padding in nine patch images

- Added a new custom PNG chunk that carries the layout padding ints.
- Extract the padding ticks from .9.png images and store in the chunk.
- Load the padding information at runtime into Bitmap and NinePatchDrawable.

- The new chunk is ordered first so that it doesn't cause a problem in older
  versions of the platform.

Bug: 6087201

Change-Id: I5de46167a1d44b3ec21065b0c165e594b1dc8399
Images.cpp