17cd4dfe3a05c2eddbcbc76066ff3b13fc3f2c8b |
|
14-Oct-2014 |
Alan Viverette <alanv@google.com> |
Update preload list, clean up drawable theming Removes all implementations of three-arg ConstantState constructor, since we handle mutation and applyTheme() in Resources now. Moves progress bar tinting to android:tint attribute. Correctly implements applyTheme() and canApplyTheme() in all drawable wrapper and container classes. Change-Id: Ic9cb43d0d6228aa4914f3124bed234b837beaa41
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
727cae197b123ef764a1f8fbe08a995b000d14c3 |
|
08-Oct-2014 |
Alan Viverette <alanv@google.com> |
Mutate and apply theme if needed before caching themed drawables This ensures that drawables are completely separated from their cached constant states before applying a theme. After this, we can remove the implicit (and incomplete) mutation in the clone constructors. Also implements missing mutate() method on ClipDrawable. BUG: 17646144 Change-Id: If0d66b0a85724d76e0a4f506758c7ba3c0aa3410
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
607bd848269fb802550e63aa61945790616f97a7 |
|
12-Sep-2014 |
Alan Viverette <alanv@google.com> |
Update icons to vectors, fix preload theming & vector tinting Adds a missing JNI binding to AssetManager, ensures drawables have default tint modes as documented, and updates vector tint appropriately when state changes. BUG: 17385604 Change-Id: Ice92885989ebc13b95952f5dc3b7904cc956da12
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
a426445dfdab43886dd894f2ba8a1d55bfcbb278 |
|
29-Jul-2014 |
Alan Viverette <alanv@google.com> |
Separate tint and tintMode properties BUG: 16054922 Change-Id: I820fb857b671faf9eb27612e470e820c5c4cd6b5
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
77b5cad3efedd20f2b7cc14d87ccce1b0261960a |
|
31-Jul-2014 |
Chris Craik <ccraik@google.com> |
Add outline alpha bug:16140822 bug:16566746 This allows background drawables to alter the opacity of a shadow being cast with their own alpha values. Change-Id: I49698cc7c1bf4b2b55ffe2f82899543ca62bc61c
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
31ba192dd201df2cad96a8c503f730130ab0d80f |
|
18-Jul-2014 |
Chris Craik <ccraik@google.com> |
Tweaks to outline API b/15283203 b/16142564 Remove boolean return value chaining, as it's redundant with the data in the Outline itself. Change-Id: I3116e57cd1b35c98b74e95195117edd7e39fb2df
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
8e5e11b99fac942122ee2d6cdd30af51564861ae |
|
07-Jul-2014 |
Alan Viverette <alanv@google.com> |
Handle configuration changes in drawable attributes Adds themeable attribute support to InsetDrawable, adds support for attribute configuration changes to all themable drawables. BUG: 16045735 Change-Id: I3dc62d28801760ac69d303be81b6c78bb9bb5aca
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
22594f097242d9de0a538a9b8142f77da9df7ebd |
|
21-Jun-2014 |
Alan Viverette <alanv@google.com> |
Add tileModeX/Y attrs to BitmapDrawable, tint to ShapeDrawable Change-Id: I1c9efe39bfd5286230cee8354822db81f05186e4
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
07c661e677b354c2298a2b81f19fd24e5ab1b0e0 |
|
20-Jun-2014 |
Alan Viverette <alanv@google.com> |
Put dither in GradientDrawable constant state Previously the dither attribute would be dropped when cloning a gradient drawable from constant state. Also fixes ShapeDrawable theme extraction. BUG: 15754194 Change-Id: I3071f5b8236cfa6acb549627a3dfac0618518dbf
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
a2992f44bc3787f37c3cad98f79dcfe67fb1aa81 |
|
17-Jun-2014 |
Alan Viverette <alanv@google.com> |
Fix tint filters in NinePatchDrawable and ShapeDrawable BUG: 15678325 Change-Id: I57066e7a44498c88a270c76b7880f36825a25bb8
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
611c1ff0de00b636ca0f9d5500c91d75b9c5257a |
|
16-Jun-2014 |
Alan Viverette <alanv@google.com> |
Fix ShapeDrawable constant state and theming Change-Id: I085d7705b63ec5f94e9b9fb5ece85ae3c7d39512
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
b3c56086d802ae28888dd97ba1f49bd6cee0b673 |
|
14-Jun-2014 |
Alan Viverette <alanv@google.com> |
Add support for setTint in all Drawables, clean up lint warnings Change-Id: I962089ca59684cef28cb4a648d4a91e542bdf5d4
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
6dbe51b50e82057af4d29882889444d22ac19c9c |
|
03-Jun-2014 |
Alan Viverette <alanv@google.com> |
Clean up drawable theming APIs Removes APIs for themed creation of a drawable from a stream, since that doesn't involve any inflation. Also cleans up tinting methods left over from previous clean up. BUG: 15089957 Change-Id: I2af7aa9a6d351ae61b33ee1216c674fae1bffe11 Signed-off-by: Alan Viverette <alanv@google.com>
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
c29a0a4664a4b9871fadd668b632469a0db240b9 |
|
31-Mar-2014 |
Derek Sollenberger <djsollen@google.com> |
Avoid caching shadow properties in Java & HWUI. bug: 10650594 Change-Id: I6f57df002710bb0567ed7e53fc0bfe96cfd504b8
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
7979388d4f7d5d9dbfcf7e1cc4709f8088c034ae |
|
25-Apr-2014 |
Chris Craik <ccraik@google.com> |
Support Oval GradientDrawable outlines, and ShapeDrawable Change-Id: Ifc9e55757d3325cb28a1a812ec696512d4a18b39
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
52b999f0721b53e9c6e18a4bd664e89aeb65b2d5 |
|
25-Mar-2014 |
Alan Viverette <alanv@google.com> |
Implement APIs for obtaining, caching themed Drawables When Drawables are inflated during preload (or otherwise without a theme) they cache their themeable attributes in their constant state as an array keyed on attribute index. Drawables inflated with a theme will simply resolve theme attributes as part of normal inflation, and they will not cache any themeable attributes. Drawables obtained from Resources are pulled from theme-specific cache when possible. If an unthemed Drawable exists in the preload cache, a new constant state will be obtained for the Drawable and the theme will be applied by resolving the cached themeable attributes and overwriting their respective constant state properties. If no cached version exists, a new Drawable is inflated against the desired theme. Constant states from themed drawables may be cached if the applied theme is "pure" and was loaded from a style resource without any subsequent modifications. This CL does not handle applying themes to several Drawable types, but it fully supports BitmapDrawable, GradientDrawable, NinePatchDrawable, ColorDrawable, and TouchFeedbackDrawable. BUG: 12611005 Change-Id: I4e794fbb62f7a371715f4ebdf946ee5f9a5ad1c9
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
09ceac298cc12471e4575fe49f97766c1ed7b2a1 |
|
27-Feb-2014 |
Alan Viverette <alanv@google.com> |
Clean up tint API Change-Id: I56056e7596840c563f5332922d63e8893a0cac17
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
2cc13d0ef11a4dda0265c2348c6861ab74cab82e |
|
27-Feb-2014 |
Alan Viverette <alanv@google.com> |
Fix shape drawable constructor Change-Id: Ibb2c1993faf9d2baae3130f334475aa07fbe9015
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
813d85b82cb7cbaa5dbe05496d1038caa17a1698 |
|
27-Feb-2014 |
Alan Viverette <alanv@google.com> |
Fix progress bar tinting, add tint support to ShapeDrawable Cleans up APIs a little, since I think we may want to add tinting modes beyond what Porter-Duff can provide. Plus we don't actually support some of the Porter-Duff modes in hardware. Change-Id: I2cea1b737cc93607a24842c54eb9f0d8346b29d4
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
16f1d81d47beb1e04504a76de66e2919dde08c33 |
|
31-Jan-2014 |
Alan Viverette <alanv@google.com> |
Revert "Cache display lists for Drawables" This reverts commit c062c7003f34999632fe4ad721dcd47cd71b2159. Change-Id: I96d4f0482b927101f52140b667f4c38ffc8687f5
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
c062c7003f34999632fe4ad721dcd47cd71b2159 |
|
15-Jan-2014 |
Alan Viverette <alanv@google.com> |
Cache display lists for Drawables Change-Id: I86e2dd4cd4ac8871f4131450cb9082c2b8de2eed
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
b1af7f3d4be6cd6bc6e1e805f22c209e19bf928f |
|
08-Mar-2013 |
Chet Haase <chet@google.com> |
add getAlpha() to Drawable Drawable has setAlpha(int), but no getAlpha() (although some subclasses have added the method). This makes it more tedious to use the property. For example, animations that wish to animate this property must explicitly give it a start value since this value cannot be queried from the object. The trick is that setAlpha(int) is abstract, only implemented by subclasses. We cannot take this approach for getAlpha(), as we would break all subclasses of Drawable until they implemented the method. Instead, we'll add a default method which returns an invalid value, making it easier for clients of the method to detect whether the value is valid. All subclasses of Drawble in frameworks have been changed to add an override of getAlpha() when appropriate. Issue #7485875 Drawables is missing getAlpha() Change-Id: I06b6e35f1a56d202838eca44759c85c82595020a
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
f0e06784609bd3a62cbf86499b4348f4521b6de6 |
|
01-Mar-2013 |
Chris Craik <ccraik@google.com> |
Avoid trying to draw invisible ShapeDrawables This avoids work when a drawable is declared with @android:color/transparent Change-Id: I1b6d3b22751e378be047a5538dfd4d4baab3c03a
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
1558cf1498ecc687532f2dad3de720053dca9309 |
|
08-Sep-2012 |
Romain Guy <romainguy@google.com> |
Fix crash in ShapeDrawable Change-Id: Ibc277db46912a73dc3f971f8487baa5eafa8bc84
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
61fd1e8d8c3ccf2d6b7d4af1c19e8f0988d5a1ec |
|
26-Oct-2011 |
Joe Fernandez <joefernandez@google.com> |
docs: add developer guide cross references, Project ACRE, round 3 Change-Id: I6125315ecdf0f78dd947c514a9944729d723e95d
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
ed7894352f8addfe3d0da75cc7fe8bc6fef201dc |
|
24-Feb-2011 |
Romain Guy <romainguy@google.com> |
Add dither XML attribute support to Gradient and ShapeDrawable. Change-Id: I4b60a0ba6766b7e7b176e78dc7f15f8467e2b890
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
6efd2bad954e0e5bd74916a32f036a0f149dcd4d |
|
13-Jan-2011 |
Christopher Lais <chris+android@zenthought.org> |
Don't drop the drawable cache completely on configuration change There was a lot of fancy code just above the clear to ensure that drawables that aren't affected by the change are kept, then the entire array was cleared. This patch removes the clear, so that the drawables that haven't changed are really kept, matching the logs, comments and larger part of the code. This patch also fixes the various constant states to return correct ChangingConfigurations. Change-Id: Ic11f6179537318d3de16dc58286989eb62a07f15 Old-Change-Id: I22495e6ed232dfe056207ce5155405af1fa82428
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
9891e1fce5f29d0421d34aa481037417bd70853d |
|
11-Nov-2010 |
Chet Haase <chet@google.com> |
Add invalidation to Drawable when its properties change invalidateSelf() already exists on Drawable. This triggers a call to callback listeners so that they know the drawable has been invalidated. For example, the background drawable on View will cause the View itself to be invalidated. Change-Id: I45b231a7600dcf3bc139e4059b7c9940ff49f60c
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
dfe5c204403bc56c29bb36410574eab8b1950417 |
|
09-Jun-2010 |
Scott Main <smain@google.com> |
docs: lots of additions to the resources docs new drawable resources add <merge> and <include> to layout resource update drawable class descriptioons to point to resources guide add ID resource type Change-Id: I733eec50bb2671f28c9e6dd7dec14eb6586f5193
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
c2974809373697147cbe5754835cc871fb93aef1 |
|
14-Sep-2009 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #2116977: buttons are huge and bent Now that we are using preloaded drawables in compatibilty mode, when constructing them from their constant state we need to set the new drawable's target density appropriately. Change-Id: I3665cbea09d38b9ac5f45f8c380dc8641f86b266
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
90cfa9df3f3b586eae49ee2d2533a05238d391a4 |
|
08-Jul-2009 |
Phil Dubach <phillipd@google.com> |
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.
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
d24b8183b93e781080b2c16c487e60d51c12da31 |
|
11-Feb-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@130745
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|
54b6cfa9a9e5b861a9930af873580d6dc20f773c |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
/frameworks/base/graphics/java/android/graphics/drawable/ShapeDrawable.java
|