blob: 7ddac7e08c8eaa7065dddaf42c4b7cc6da8b35e4 [file] [log] [blame]
Chet Haasefaebd8f2012-05-18 14:17:57 -07001/*
2 * Copyright (C) 2013 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Chet Haase6ebe3de2013-06-17 16:50:50 -070016
Chet Haasefaebd8f2012-05-18 14:17:57 -070017package android.view.transition;
18
19/**
20 * Utility class for creating a default transition that automatically fades,
21 * moves, and resizes views during a scene change.
22 */
23public class AutoTransition extends TransitionGroup {
24
25 /**
26 * Constructs an AutoTransition object, which is a TransitionGroup which
27 * first fades out disappearing targets, then moves and resizes existing
28 * targets, and finally fades in appearing targets.
29 *
30 */
31 public AutoTransition() {
32 setOrdering(SEQUENTIALLY);
33 addTransitions(new Fade(Fade.OUT), new Move(), new Fade(Fade.IN));
34 }
35}