summaryrefslogtreecommitdiffstats
path: root/tests/TransitionTests/src/com/android/transitiontests/SequenceTest.java
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2013-09-11 13:08:18 -0700
committerChet Haase <chet@google.com>2013-09-11 13:53:43 -0700
commitff58f92a0a77ad849ba714b5adac96790eca0048 (patch)
tree8afdc22ae95998fea49ba795f88e2338449e4ccd /tests/TransitionTests/src/com/android/transitiontests/SequenceTest.java
parent6847447da0b3e2e30e88838ec85244d1a0ee8927 (diff)
downloadframeworks_base-ff58f92a0a77ad849ba714b5adac96790eca0048.zip
frameworks_base-ff58f92a0a77ad849ba714b5adac96790eca0048.tar.gz
frameworks_base-ff58f92a0a77ad849ba714b5adac96790eca0048.tar.bz2
Add exclude() methods to Transition
It would be useful for a transition to declare not just which targets it wants to be run on, but also which targets it wants to avoid. For example, you may not want to animate the items of a ListView, or some other specific target in the view hierarchy. This change adds various exclude*() methods which make it possible to alter a transition to automatically ignore specific views, ids, or classes in the hierarchy. Issue #10692794 Transitions: Need API for excluding targets Change-Id: If38025cdbee537a545e5a4268cbbd763af4622c5
Diffstat (limited to 'tests/TransitionTests/src/com/android/transitiontests/SequenceTest.java')
-rw-r--r--tests/TransitionTests/src/com/android/transitiontests/SequenceTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/TransitionTests/src/com/android/transitiontests/SequenceTest.java b/tests/TransitionTests/src/com/android/transitiontests/SequenceTest.java
index ab1dc26..c550e92 100644
--- a/tests/TransitionTests/src/com/android/transitiontests/SequenceTest.java
+++ b/tests/TransitionTests/src/com/android/transitiontests/SequenceTest.java
@@ -51,9 +51,9 @@ public class SequenceTest extends Activity {
mScene1 = Scene.getSceneForLayout(mSceneRoot, R.layout.fading_test, this);
mScene2 = Scene.getSceneForLayout(mSceneRoot, R.layout.fading_test_scene_2, this);
- Transition fade1 = new Fade().addTargetId(R.id.removingButton);
- Transition fade2 = new Fade().addTargetId(R.id.invisibleButton);
- Transition fade3 = new Fade().addTargetId(R.id.goneButton);
+ Transition fade1 = new Fade().addTarget(R.id.removingButton);
+ Transition fade2 = new Fade().addTarget(R.id.invisibleButton);
+ Transition fade3 = new Fade().addTarget(R.id.goneButton);
TransitionSet fader = new TransitionSet().
setOrdering(TransitionSet.ORDERING_SEQUENTIAL);
fader.addTransition(fade1).addTransition(fade2).addTransition(fade3).