8240c97b01c367e59f79a73952db6f7e2d4f657d |
|
30-Oct-2015 |
Chet Haase <chet@google.com> |
Un-hide FloatProperty and IntProperty These simple utility classes (used internally since Property was first introduced way back in Jellybean) are the best way to avoid autoboxing when using the Property approach to ObjectAnimator. But since their hidden, developers have to use the autoboxing version (Property, the superclass) or know to come up with their own primitive-optimized property subclasses. This CL simply un-hides these two classes to make them usable outside of the framework. Issue #21722783 Make [Int|Float]Property public Change-Id: I7f3a456d108bf48587d711255d3577cce3ac5e24
/frameworks/base/core/java/android/util/IntProperty.java
|
c5d43f76fd7c3ccb91f1b75618a9c9e8f202505b |
|
23-Nov-2012 |
László Dávid <laszlo.david@gmail.com> |
Fix infinite recursive loop FindBugs description: There is an apparent recursive loop at IntProperty.java in method set(Object, Integer) This method unconditionally invokes itself. This would seem to indicate an infinite recursive loop that will result in a stack overflow. Change-Id: I2f52dd3689198cb948925aa65dd9c95be7888fe7
/frameworks/base/core/java/android/util/IntProperty.java
|
b39f051631250c49936a475d0e64584afb7f1b93 |
|
24-May-2011 |
Chet Haase <chet@google.com> |
Add 'Property' object This change adds a generic Property facility to the SDK, which allows an easy way to reference fields (private or otherwise) in a general way. For example, animations can use this facility to animate 'properties' on target objects in a way that is more code- and compiler-friendly than the existing String-based approach (for objects which have implemented Properties, of course). The animator classes have been updated to use this new approach (in addition to Strings, which are still more generally useful for objects which have get/set functions but not Property objects). The change also includes new Property objects on View (which can now be used in creating animations on Views). There is an unrelated change on GLES20RecordingCanvas to change the way we cache bitmaps, which avoids spurious garbage by using an ArrayList instead of a HashSet. Change-Id: I167b43a3fca20e7695b1a23ca81274367539acda
/frameworks/base/core/java/android/util/IntProperty.java
|