diff options
author | Chet Haase <chet@google.com> | 2013-06-05 17:49:01 -0700 |
---|---|---|
committer | Chet Haase <chet@google.com> | 2013-06-06 07:37:32 -0700 |
commit | 4f0c4672ac7fd6b8135e27d8f816da2ebaf7d63a (patch) | |
tree | f1e3da88d14e6e844d621af6d996c8c5bca42562 /tests/TransitionTests/src/com/android | |
parent | ae8f82f2015612a659b95007c355d12c83fbcefc (diff) | |
download | frameworks_base-4f0c4672ac7fd6b8135e27d8f816da2ebaf7d63a.zip frameworks_base-4f0c4672ac7fd6b8135e27d8f816da2ebaf7d63a.tar.gz frameworks_base-4f0c4672ac7fd6b8135e27d8f816da2ebaf7d63a.tar.bz2 |
Fix CrossFade transition
Small fixes in CrossFade to handle more general situations.
Also, added API to CrossFade to enable different behaviors during
the transition.
Change-Id: I12d17ab8f8f96be370c070373112ad8a62df9115
Diffstat (limited to 'tests/TransitionTests/src/com/android')
-rw-r--r-- | tests/TransitionTests/src/com/android/transitiontests/CrossFadeDemo.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/TransitionTests/src/com/android/transitiontests/CrossFadeDemo.java b/tests/TransitionTests/src/com/android/transitiontests/CrossFadeDemo.java index 2fcdc30..d5f6a28 100644 --- a/tests/TransitionTests/src/com/android/transitiontests/CrossFadeDemo.java +++ b/tests/TransitionTests/src/com/android/transitiontests/CrossFadeDemo.java @@ -45,6 +45,8 @@ public class CrossFadeDemo extends Activity { mScene2 = new Scene(mSceneRoot, R.layout.crossfade_1, this); Crossfade crossfade = new Crossfade(); + crossfade.setFadeBehavior(Crossfade.FADE_BEHAVIOR_CROSSFADE); + crossfade.setResizeBehavior(Crossfade.RESIZE_BEHAVIOR_NONE); crossfade.setTargetIds(R.id.textview, R.id.textview1, R.id.textview2); mTransitionManager = new TransitionManager(); TransitionGroup moveCrossFade = new TransitionGroup(); |