diff options
author | Chet Haase <chet@google.com> | 2013-03-26 07:55:30 -0700 |
---|---|---|
committer | Chet Haase <chet@google.com> | 2013-04-08 07:30:12 -0700 |
commit | edf6f4b49f6e77c349f5055372ce381b74f12efb (patch) | |
tree | a506b5eecd2c19017f46dc9f5982e0a8de3078ef /core/java/android/animation | |
parent | a56b78dcd1292a4291d85113bdeeda8496c1a0c0 (diff) | |
download | frameworks_base-edf6f4b49f6e77c349f5055372ce381b74f12efb.zip frameworks_base-edf6f4b49f6e77c349f5055372ce381b74f12efb.tar.gz frameworks_base-edf6f4b49f6e77c349f5055372ce381b74f12efb.tar.bz2 |
Make adding views specific to a ViewGroup's overlay
Adding views to views (possible with the new Overlay API) is weird.
This change moves the view-management facilities of Overlay to a subclass
that is specific to the overlay returned from ViewGroup.getOverlay().
So now you can add drawables to all view overlays, but only add/remove
views to/from the overlay returned from ViewGroup.getOverlay().
Also, the previous approach of using an interface for Overlay was
changed to classes for both ViewOverlay and ViewGroupOverlay.
Finally, this change makes not handling touch correctly the proper,
and documented, behavior of overlay views. There are various tricky issues
to sort out with input in overlays (including click handling as well as focus)
and we don't want developers starting to use overlays as some kind of general
container hierarchy, so we're purposely constraining overlays to have visual-only
behavior.
Issue #8459085 Overlay needs to handle touch correctly
Change-Id: I207b8dbf528f87c92369d270d8b0a6556826d207
Diffstat (limited to 'core/java/android/animation')
-rw-r--r-- | core/java/android/animation/RectEvaluator.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/animation/RectEvaluator.java b/core/java/android/animation/RectEvaluator.java index 10932bb..28d496b 100644 --- a/core/java/android/animation/RectEvaluator.java +++ b/core/java/android/animation/RectEvaluator.java @@ -18,7 +18,7 @@ package android.animation; import android.graphics.Rect; /** - * This evaluator can be used to perform type interpolation between <code>int</code> values. + * This evaluator can be used to perform type interpolation between <code>Rect</code> values. */ public class RectEvaluator implements TypeEvaluator<Rect> { |