e0f95f39c5a669a48ee3ebb8dc45bf2d7ee940f1 |
|
01-Apr-2015 |
Alan Viverette <alanv@google.com> |
Fix issues with theming of preloaded ColorStateLists Ensures changing configurations mask is propagated to the host drawable so that it can be properly cleared from cache on configuration changes. Also fixes constant state handling of the mask in the Inset and Rotate drawables. Hides new ColorStateList methods related to theming, since they should only be used during preloading or internally by framework drawables. Fixes bug where the cached versions of themeable ColorStateLists were modified by calling applyTheme() on the host drawable. Also cleans up some docs and naming in GradientDrawable. Bug: 19966397 Change-Id: I8c8d3cabbaf94b488c2b8fe9fd423e07d824c19c
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.java
|
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac |
|
28-Feb-2015 |
John Spurlock <jspurlock@google.com> |
Remove unused imports in frameworks/base. Change-Id: I031443de83f93eb57a98863001826671b18f3b17
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.java
|
40d13f260c50ac5235f7405e1c3a83d6f46a8d62 |
|
26-Feb-2015 |
Alan Viverette <alanv@google.com> |
Merge "Remove obsolete code from AnimatedRotateDrawable state"
|
039bd51a23d886d0acaa93458e286329503bd243 |
|
26-Feb-2015 |
Alan Viverette <alanv@google.com> |
Remove obsolete code from AnimatedRotateDrawable state DrawableWrappers shouldn't have drawables inside their state, nor should they manage their own drawables. Also cleans up documentation. Bug: 19518051 Change-Id: I2aea011afe80e94aadec702e1680c3765528b112
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.java
|
f74869698abff333daed28aa2f472a1e3183c2ed |
|
25-Feb-2015 |
Alan Viverette <alanv@google.com> |
Create blank state in no-arg RotateDrawable constructor Also removes unnecessary constructor in InsetState so that it matches the other DrawableWrapper classes. Bug: 19489698 Change-Id: Ib2e510c6ae90858774970d928e541a9b08cb714a
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.java
|
a12962207155305da44b5a1b8fb9acaed358c14c |
|
21-Feb-2015 |
Alan Viverette <alanv@google.com> |
Unify wrapper-type drawables Fixes several issues with constant state and propagation of drawable property changes to wrapped drawables. Also un-hides the layout direction accessors and hotspot getter. Change-Id: Iff19db6a95059cbcfcbde7af0ac33871ccd41615
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.java
|
735b75ce274ef7a4c78745844a4269d72cb4feae |
|
20-Nov-2014 |
jungheang.lee <jungheang.lee@lge.com> |
Cannot set Pivot X,Y values from setPivotX, setPivotY API Pivot value can not be changed once they have been set to default. To be changed "==" -> "!=" in if() BUG: 18474532 Change-Id: Iacd16eb951154ea97c241566b704e0ad3f225bd1
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.java
|
d03963ce364e9946f1bd603c2fcf07a49088af19 |
|
14-Nov-2014 |
Alan Viverette <alanv@google.com> |
Set current degrees when updating RotateDrawable from typed array This regressed after enabling theming in RotateDrawable. BUG: 18288235 Change-Id: I61a7b2c178253ed2d550fa0636e27e021ac9eb64
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.java
|
7f4a63d1ebc13c6499a48331ecb78c4d27446dbc |
|
30-Oct-2014 |
Alan Viverette <alanv@google.com> |
Ensure we don't pass null values in to Theme.resolveAttributes BUG: 18182274 Change-Id: I08acf877cb81478cc205254edf92a31fcf05991d
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.java
|
d21fd9d1ccd2b525f9c004a6cd9ba19a645701ab |
|
29-Oct-2014 |
Alan Viverette <alanv@google.com> |
Add theme and config change support to more Drawable types BUG: 16045735 Change-Id: Ic03173a1c1779c1bb545c4c389f77afed97011ee
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.java
|
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/RotateDrawable.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/RotateDrawable.java
|
39e33621a725bcdaa21a723866e53c6ea3356169 |
|
03-Oct-2014 |
Alan Viverette <alanv@google.com> |
Fix theme propagation to contained android:drawable elements BUG: 17790666 Change-Id: I6733a98e779cad0d384b917c57d2b3409a166c02
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.java
|
d7853e576301bf68e96148a0b9e52085bfc7cf95 |
|
27-Aug-2014 |
Alan Viverette <alanv@google.com> |
Preserve inner drawable bounds and level on mutate Also includes a tiny change to progress bar background alpha, which was too dark to see. BUG: 17285057 Change-Id: I8b0cc1c2c9405558b8163d8db9374d7c748317a2
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.java
|
03d30a573b8bc8e169e153a0fffa053ffedcd5ee |
|
14-Aug-2014 |
Alan Viverette <alanv@google.com> |
Make sure we're obtaining themed drawables correctly Change-Id: I446a3492f7bf5a897c5d698e61327af4b7840d85
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.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/RotateDrawable.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/RotateDrawable.java
|
cda212d79d449468384cc7744878b8c99984059c |
|
14-Jun-2014 |
Jeff Brown <jeffbrown@google.com> |
Revert "Add support for setTint in all Drawables, clean up lint warnings" This reverts commit 381f83b613f7b6e71180983dbb992ff62f8dd6e3. Change-Id: I1181f436c647216ac46162260d9d886197b24568
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.java
|
4b17118aca1e67963254ab83504b0753a3eac7ce |
|
14-Jun-2014 |
Alan Viverette <alanv@google.com> |
Add support for setTint in all Drawables, clean up lint warnings Change-Id: Ia38b9d3e9d5c0072382050e815bdd9232b672e50
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.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/RotateDrawable.java
|
e5b082d6eb0489e7dbe3159338f8c94c0af61dee |
|
20-May-2014 |
Alan Viverette <alanv@google.com> |
Various API council fixes to drawables BUG: 15089957 Change-Id: Ieaf468bbff092e68f6313d8a5ecccda8b753806d
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.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/RotateDrawable.java
|
a8b2edec93beeaa76b3cfc93bb9cb3e19fc34add |
|
04-Feb-2014 |
Alan Viverette <alanv@google.com> |
Clean up RotateDrawable, add getters and setters for XML properties Change-Id: I1bb174e981fb6df910fee3a9d596c0249282928c
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.java
|
d04aaa97c94792dca662ada28b5c5d2e4289e240 |
|
13-May-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
am ddd02537: am b4426f15: Merge "Fix bug #8858012 layer-list\'s bitmap item\'s start/end gravity is incorrect on RTL under certain conditions" into jb-mr2-dev * commit 'ddd02537a3fb499a82097453535194f4e29583dc': Fix bug #8858012 layer-list's bitmap item's start/end gravity is incorrect on RTL under certain conditions
|
731ba6649a40529657aa68f93e6febe7d98b4f3b |
|
11-May-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #8858012 layer-list's bitmap item's start/end gravity is incorrect on RTL under certain conditions - set correct layout direction for Drawable Change-Id: Ic8968acadbc7c9aa0bb68dd4dfbe09aa4e7cfa62
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.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/RotateDrawable.java
|
a1b92c5e8b750d8f5b2dc5ca7e8b4edc97de5575 |
|
03-Sep-2011 |
Adam Powell <adamp@google.com> |
Fix bug 5231904 - Fix wobbly progress spinners Make ProgressBar maintain aspect ratio on indeterminate progress drawables. Make RotateDrawable tolerate left/top bounds != 0. Change-Id: Iee03030caa98f72a8745f1ae3fb0de108ff663d4
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.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/RotateDrawable.java
|
f2a47782f31b58d2d31bd00b50fe43604af8b9c2 |
|
15-Dec-2010 |
Romain Guy <romainguy@google.com> |
Make Drawable.mCallback a WeakReference. Many memory leaks occur because of long lived drawables. This should help. Change-Id: I2e9e8dee26579ec56e8e73f08f6b1d62be7812d9
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.java
|
6af97e1c20df4d7010fafd7059c95d9b4113e4a6 |
|
12-Nov-2010 |
Adam Powell <adamp@google.com> |
Revised assets for progress bars and indeterminate progress spinners. Add support in ActionBar for activity-wide progress APIs. Add ability for progress bars to set a target framerate rather than the 5fps previously used. Clean up some more dialog layouts using hardcoded styles rather than theme attributes. Change-Id: I8e88c7595e27c0b6f7829b598f2b084ac8501ae3
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.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/RotateDrawable.java
|
b81b1447d2cfa9dc5bcc02c8a1b7193400a97ab6 |
|
06-Feb-2010 |
Cyril Mottier <cyrilmottier@gmail.com> |
Default RotateDrawable's pivot set to (50%, 50%) In order to define the pivot in an XML-instanciated RotateDrawable, android:pivotX and android:pivotY had to be set in your XML. Forgetting to set those attributes ended up in a NullPointerException (tv = null) that were caught by the Resources.getDrawable() method (caught as an Exception). As a result a not-very-accurate message was logged: "Resource not found ...". Defining a default pivot value seems like a great fix. Some other fixes would be to modify the documentation or notify the user with a better explanation than "Resource not found ...".
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.java
|
9db3d07b9620b4269ab33f78604a36327e536ce1 |
|
13-Nov-2009 |
Jean-Baptiste Queru <jbq@google.com> |
eclair snapshot
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.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/RotateDrawable.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/RotateDrawable.java
|
da996f390e17e16f2dfa60e972e7ebc4f868f37e |
|
13-Feb-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@131421
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.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/RotateDrawable.java
|
b798689749c64baba81f02e10cf2157c747d6b46 |
|
10-Jan-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@125939
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.java
|
54b6cfa9a9e5b861a9930af873580d6dc20f773c |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
/frameworks/base/graphics/java/android/graphics/drawable/RotateDrawable.java
|