OsmAnd/android/support/v7/internal/transition/ActionBarTransition.java
2015-05-03 14:56:07 +02:00

55 lines
No EOL
1.8 KiB
Java

/*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.support.v7.internal.transition;
import android.view.ViewGroup;
/**
* @hide
*/
public class ActionBarTransition {
private static final boolean TRANSITIONS_ENABLED = false;
private static final int TRANSITION_DURATION = 120; // ms
// private static final Transition sTransition;
//
// static {
// if (TRANSITIONS_ENABLED) {
//// final ChangeText tc = new ChangeText();
//// tc.setChangeBehavior(ChangeText.CHANGE_BEHAVIOR_OUT_IN);
// final TransitionSet inner = new TransitionSet();
// inner.addTransition(new ChangeBounds());
// final TransitionSet tg = new TransitionSet();
// tg.addTransition(new Fade(Fade.OUT)).addTransition(inner).
// addTransition(new Fade(Fade.IN));
// tg.setOrdering(TransitionSet.ORDERING_SEQUENTIAL);
// tg.setDuration(TRANSITION_DURATION);
// sTransition = tg;
// } else {
// sTransition = null;
// }
// }
public static void beginDelayedTransition(ViewGroup sceneRoot) {
// if (TRANSITIONS_ENABLED) {
// TransitionManager.beginDelayedTransition(sceneRoot, sTransition);
// }
}
}