aboutsummaryrefslogtreecommitdiffstats
path: root/ninepatch
Commit message (Collapse)AuthorAgeFilesLines
* Fix scaling of ninepatches.Xavier Ducrohet2012-10-011-1/+1
| | | | Change-Id: Id9888dec034d3010de35aa61ee5f651a672fc410
* Bundle ninepatch tests resources in jar.Brett Chabot2011-04-122-0/+1
| | | | Change-Id: Ie3efc7f35908b77e6dd9fcffcea3a5d24a8fd45b
* Bundle ninepatch.jar inside ninepatch-tests.jarBrett Chabot2011-03-251-1/+3
| | | | Change-Id: Ie659cfdc1bce12f51aca4a636ea117142f8c4be1
* Add missing notice files.Xavier Ducrohet2011-03-151-0/+190
| | | | | | | | | | Also fix some makefiles to make sure the notices are picked up. - move the makefile outside of the source folder. - resources are now in the source folder directly instead of being inside src/resources. It's much simpler. Change-Id: Ica8ee4c2bc8a9b035d23fc914d4137cdca7e567d
* Move ninepatch tests from layoutlib to sdk where ninepatch lives.Xavier Ducrohet2011-02-246-0/+106
| | | | Change-Id: I6d23c6495622214f94502a73ebf80def0fb55e1a
* ninepatch support for drawing at a different density.Xavier Ducrohet2010-12-132-1/+33
| | | | Change-Id: I0932f8a51d30c256157fccf67e77cf165ba93b58
* Fix 9-patch paddingXavier Ducrohet2010-12-011-1/+1
| | | | | | | Forgot to change one line that test against 1 for left index, when lines now start at 0. Change-Id: Ib9a7779d8fd70b3b0c6b243bf67d77aa986b13a6
* Fix nine patch size.Xavier Ducrohet2010-11-232-23/+62
| | | | | | | | | | | | | | | | Since we moved the 9-patch chunk out of the NinePatch, the image content portion is not in our control (it's owned by the default implementation of NinePatchDrawable through an Android Bitmap), and therefore should not include the control outer line. This changeset makes the bitmap contains only the extracted content and makes the computation of the patches take into account that the draw method will be applied on a bitmap that is only the content without the control line. Basically the computation of the patches/fixed rectangle exclude the outer control line. Change-Id: I29c2224ee2311962b30d1fb155b85d5731d4e6ec
* Move the ninepatch info into its own class.Xavier Ducrohet2010-11-222-348/+481
| | | | | | | | | | | The chunk is what is used separately by the default NinePatch class, through serialization to make a byte[] out of it. Since we are moving away from replacement classes to delegate, splitting the chunk info away from the image allows us to use the normal NinePatch(Drawable). Change-Id: Ifd86dc2aa9b485d0e97a2d4a248621cfcddda9ab
* Add git ignore file for ninepatch eclipse project.Xavier Ducrohet2009-10-061-0/+1
| | | | Change-Id: Iafd228336791a4a5b3b9443ba7ea075f8bf1d8a0
* Add support for loading 9-patch from a stream.Xavier Ducrohet2009-10-064-30/+93
| | | | | | | This will be used by the tests. Also added the eclipse project files. Change-Id: I56443773d90594475fc3f14464d48e56d5a1bbb5
* auto import from //branches/cupcake/...@137197The Android Open Source Project2009-03-091-45/+51
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-033-0/+593
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-033-593/+0
|
* Initial ContributionThe Android Open Source Project2008-10-213-0/+593