aa006133228facf2f9b61e0492fd8f724fac472f |
|
04-Oct-2013 |
Chet Haase <chet@google.com> |
Enable transitions in lockscreen media controller Media controller now fades between different states. The code for doing this was already there, but this CL enables them and changes the behavior of transition's OnPreDrawListener to do the right thing. Also, this CL fixes a bug in ChangeText found while testing this change. Issue #11083563 ChangeText transition crashes when KEEP transition type used Change-Id: I5e04c28e1b5faac017b0a4e49734d9faa7fe79cd
/frameworks/base/core/java/android/transition/TransitionManager.java
|
b7a7fc9d233bad507ce893882352618b13647058 |
|
21-Sep-2013 |
Chet Haase <chet@google.com> |
Make fading transitions work better Previously, a Fade transition would only affect a view if its parent hierarchy was not also affected between the start/end states. This caused problems for views which were removed from their parents between scenes when their parents' visibility also changed between those scenes. The effect would be that the transition would fade the parent... but the child would no longer be in that parent, so the user would just see the child view blink out. This fix ensure that views are faded appropriately by fading them regardless the parent hierarchy; if a view is removed from its parent, fade it out. Additionally, if that view has not been removed from its parent, but its parent is no longer parented *and* scene being transitioned from is based on a layout resource file (and thus the views are considered temporary after transitioning), then it is removed from its parent to be faded out in the overlay. Also, renamed TextChange to ChangeText to be more consistent with other transition class names. Change-Id: I4e0e7dfc9e9d95c7a4ca586534b6d204c4f3bae0
/frameworks/base/core/java/android/transition/TransitionManager.java
|
23c61f6bc57a611d97d333bce0d8fe00ab81af4c |
|
14-Sep-2013 |
Chet Haase <chet@google.com> |
Ensure that transitions animating alpha end on a reasonable value The Fade transition sets an initial alpha value of 0 when items are appearing. This makes items invisible to start with, and then they eventually fade in as part of the transition when the transition's animation runs. But if that animation/transition gets interrupted, or not started, then the alpha value would not be restored, and the value would stay 0, making the items invisible indefinitely. This is what was happening in the action bar of the People app when performing a search. The fix is to handle Transition and animation events to restore the alpha to its true value when the transition completes, whether that transition is canceled or not. Issue #10726905 ActionBar weirdness in People app Change-Id: Idb65fd8d471d2ac0a1ddc243fee00ae99f7e72d8
/frameworks/base/core/java/android/transition/TransitionManager.java
|
7660d121b2ef21164ed33e6091e5dd50f5d0f939 |
|
13-Sep-2013 |
Chet Haase <chet@google.com> |
Plug leaks in transitions Transitions were leaking views due to TransitionsValues holding references to views/parents. The references were fine, but the retention of the transition objects themselves were not. There were a few different places that needed to be plugged: - clones were not making new copies of some fields, leading to caching references in the original object (which was then cloned later to other clones) - Visibility was using a persistent field to cache temporary values. This transition, when cloned, would retain these instances, keeping references to views - ViewTreeObserver had a bug that would leak listeners Issue #10749071 Activity instance leak between TransitionManager and InputMethodManager Change-Id: I1d5d457dc5e020c7b9e8392a95e3b2c488461119
/frameworks/base/core/java/android/transition/TransitionManager.java
|
7d077d0364535a9865db2884bf3c3ed93db127be |
|
14-Sep-2013 |
Chet Haase <chet@google.com> |
Disable ActionBar transitions A problem with transitions is causing various ActionBar icons to go missing occasionally. This CL disables these transitions for now to allow ActionBar to work as expected. Issue #10726905 ActionBar weirdness in People app Change-Id: I0cb774840ae84cbb733d65865f8c1b4c6d7490fa
/frameworks/base/core/java/android/transition/TransitionManager.java
|
d82c8ac4db7091d2e976af4c89a1734465d20cd2 |
|
26-Aug-2013 |
Chet Haase <chet@google.com> |
Transition API changes from API council recommendations Issue #10460684 KLP API Review: android.view.transition and android.animation Issue #10570740 Transitions: inflate transition targets from xml Change-Id: I7a3f6d3aece2fcafc5efd555d033f79e86635c98
/frameworks/base/core/java/android/transition/TransitionManager.java
|