diff options
author | Chet Haase <chet@google.com> | 2013-09-27 00:26:21 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-09-27 00:26:22 +0000 |
commit | 033837dd6bf32b33d9a67d340efd167f94bf80cf (patch) | |
tree | bb60884d841a901846d0a680aab16eee8992b27e /core/java/android/transition/Transition.java | |
parent | adf149029f701464c66cc5cacbbbc649c1319bcd (diff) | |
parent | b7a7fc9d233bad507ce893882352618b13647058 (diff) | |
download | frameworks_base-033837dd6bf32b33d9a67d340efd167f94bf80cf.zip frameworks_base-033837dd6bf32b33d9a67d340efd167f94bf80cf.tar.gz frameworks_base-033837dd6bf32b33d9a67d340efd167f94bf80cf.tar.bz2 |
Merge "Make fading transitions work better" into klp-dev
Diffstat (limited to 'core/java/android/transition/Transition.java')
-rw-r--r-- | core/java/android/transition/Transition.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/transition/Transition.java b/core/java/android/transition/Transition.java index a552fd4..dcf668b 100644 --- a/core/java/android/transition/Transition.java +++ b/core/java/android/transition/Transition.java @@ -118,6 +118,14 @@ public abstract class Transition implements Cloneable { // Scene Root is set at createAnimator() time in the cloned Transition ViewGroup mSceneRoot = null; + // Whether removing views from their parent is possible. This is only for views + // in the start scene, which are no longer in the view hierarchy. This property + // is determined by whether the previous Scene was created from a layout + // resource, and thus the views from the exited scene are going away anyway + // and can be removed as necessary to achieve a particular effect, such as + // removing them from parents to add them to overlays. + boolean mCanRemoveViews = false; + // Track all animators in use in case the transition gets canceled and needs to // cancel running animators private ArrayList<Animator> mCurrentAnimators = new ArrayList<Animator>(); @@ -1445,6 +1453,10 @@ public abstract class Transition implements Cloneable { return this; } + void setCanRemoveViews(boolean canRemoveViews) { + mCanRemoveViews = canRemoveViews; + } + @Override public String toString() { return toString(""); |