summaryrefslogtreecommitdiff
path: root/core/java/android/util/FloatProperty.java
Commit message (Collapse)AuthorAgeFilesLines
* Un-hide FloatProperty and IntPropertyChet Haase2015-11-031-6/+2
| | | | | | | | | | | | | | 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
* Add 'Property' objectChet Haase2011-06-081-0/+48
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