Methods Summary |
---|
public android.transition.TransitionSet | addListener(TransitionListener listener)
return (TransitionSet) super.addListener(listener);
|
public android.transition.TransitionSet | addTarget(android.view.View target)
for (int i = 0; i < mTransitions.size(); i++) {
mTransitions.get(i).addTarget(target);
}
return (TransitionSet) super.addTarget(target);
|
public android.transition.TransitionSet | addTarget(int targetId)
for (int i = 0; i < mTransitions.size(); i++) {
mTransitions.get(i).addTarget(targetId);
}
return (TransitionSet) super.addTarget(targetId);
|
public android.transition.TransitionSet | addTarget(java.lang.String targetName)
for (int i = 0; i < mTransitions.size(); i++) {
mTransitions.get(i).addTarget(targetName);
}
return (TransitionSet) super.addTarget(targetName);
|
public android.transition.TransitionSet | addTarget(java.lang.Class targetType)
for (int i = 0; i < mTransitions.size(); i++) {
mTransitions.get(i).addTarget(targetType);
}
return (TransitionSet) super.addTarget(targetType);
|
public android.transition.TransitionSet | addTransition(Transition transition)Adds child transition to this set. The order in which this child transition
is added relative to other child transitions that are added, in addition to
the {@link #getOrdering() ordering} property, determines the
order in which the transitions are started.
If this transitionSet has a {@link #getDuration() duration} set on it, the
child transition will inherit that duration. Transitions are assumed to have
a maximum of one transitionSet parent.
if (transition != null) {
mTransitions.add(transition);
transition.mParent = this;
if (mDuration >= 0) {
transition.setDuration(mDuration);
}
}
return this;
|
protected void | cancel()
super.cancel();
int numTransitions = mTransitions.size();
for (int i = 0; i < numTransitions; ++i) {
mTransitions.get(i).cancel();
}
|
public void | captureEndValues(TransitionValues transitionValues)
if (isValidTarget(transitionValues.view)) {
for (Transition childTransition : mTransitions) {
if (childTransition.isValidTarget(transitionValues.view)) {
childTransition.captureEndValues(transitionValues);
transitionValues.targetedTransitions.add(childTransition);
}
}
}
|
void | capturePropagationValues(TransitionValues transitionValues)
super.capturePropagationValues(transitionValues);
int numTransitions = mTransitions.size();
for (int i = 0; i < numTransitions; ++i) {
mTransitions.get(i).capturePropagationValues(transitionValues);
}
|
public void | captureStartValues(TransitionValues transitionValues)
if (isValidTarget(transitionValues.view)) {
for (Transition childTransition : mTransitions) {
if (childTransition.isValidTarget(transitionValues.view)) {
childTransition.captureStartValues(transitionValues);
transitionValues.targetedTransitions.add(childTransition);
}
}
}
|
public android.transition.TransitionSet | clone()
TransitionSet clone = (TransitionSet) super.clone();
clone.mTransitions = new ArrayList<Transition>();
int numTransitions = mTransitions.size();
for (int i = 0; i < numTransitions; ++i) {
clone.addTransition((Transition) mTransitions.get(i).clone());
}
return clone;
|
protected void | createAnimators(android.view.ViewGroup sceneRoot, TransitionValuesMaps startValues, TransitionValuesMaps endValues, java.util.ArrayList startValuesList, java.util.ArrayList endValuesList)
long startDelay = getStartDelay();
int numTransitions = mTransitions.size();
for (int i = 0; i < numTransitions; i++) {
Transition childTransition = mTransitions.get(i);
// We only set the start delay on the first transition if we are playing
// the transitions sequentially.
if (startDelay > 0 && (mPlayTogether || i == 0)) {
long childStartDelay = childTransition.getStartDelay();
if (childStartDelay > 0) {
childTransition.setStartDelay(startDelay + childStartDelay);
} else {
childTransition.setStartDelay(startDelay);
}
}
childTransition.createAnimators(sceneRoot, startValues, endValues, startValuesList,
endValuesList);
}
|
public Transition | excludeTarget(android.view.View target, boolean exclude)
for (int i = 0; i < mTransitions.size(); i++) {
mTransitions.get(i).excludeTarget(target, exclude);
}
return super.excludeTarget(target, exclude);
|
public Transition | excludeTarget(java.lang.String targetName, boolean exclude)
for (int i = 0; i < mTransitions.size(); i++) {
mTransitions.get(i).excludeTarget(targetName, exclude);
}
return super.excludeTarget(targetName, exclude);
|
public Transition | excludeTarget(int targetId, boolean exclude)
for (int i = 0; i < mTransitions.size(); i++) {
mTransitions.get(i).excludeTarget(targetId, exclude);
}
return super.excludeTarget(targetId, exclude);
|
public Transition | excludeTarget(java.lang.Class type, boolean exclude)
for (int i = 0; i < mTransitions.size(); i++) {
mTransitions.get(i).excludeTarget(type, exclude);
}
return super.excludeTarget(type, exclude);
|
public void | forceVisibility(int visibility, boolean isStartValue)
int numTransitions = mTransitions.size();
for (int i = 0; i < numTransitions; i++) {
mTransitions.get(i).forceVisibility(visibility, isStartValue);
}
|
public int | getOrdering()Returns the ordering of this TransitionSet. By default, the value is
{@link #ORDERING_TOGETHER}.
return mPlayTogether ? ORDERING_TOGETHER : ORDERING_SEQUENTIAL;
|
public Transition | getTransitionAt(int index)Returns the child Transition at the specified position in the TransitionSet.
if (index < 0 || index >= mTransitions.size()) {
return null;
}
return mTransitions.get(index);
|
public int | getTransitionCount()Returns the number of child transitions in the TransitionSet.
return mTransitions.size();
|
public void | pause(android.view.View sceneRoot)
super.pause(sceneRoot);
int numTransitions = mTransitions.size();
for (int i = 0; i < numTransitions; ++i) {
mTransitions.get(i).pause(sceneRoot);
}
|
public android.transition.TransitionSet | removeListener(TransitionListener listener)
return (TransitionSet) super.removeListener(listener);
|
public android.transition.TransitionSet | removeTarget(int targetId)
for (int i = 0; i < mTransitions.size(); i++) {
mTransitions.get(i).removeTarget(targetId);
}
return (TransitionSet) super.removeTarget(targetId);
|
public android.transition.TransitionSet | removeTarget(android.view.View target)
for (int i = 0; i < mTransitions.size(); i++) {
mTransitions.get(i).removeTarget(target);
}
return (TransitionSet) super.removeTarget(target);
|
public android.transition.TransitionSet | removeTarget(java.lang.Class target)
for (int i = 0; i < mTransitions.size(); i++) {
mTransitions.get(i).removeTarget(target);
}
return (TransitionSet) super.removeTarget(target);
|
public android.transition.TransitionSet | removeTarget(java.lang.String target)
for (int i = 0; i < mTransitions.size(); i++) {
mTransitions.get(i).removeTarget(target);
}
return (TransitionSet) super.removeTarget(target);
|
public android.transition.TransitionSet | removeTransition(Transition transition)Removes the specified child transition from this set.
mTransitions.remove(transition);
transition.mParent = null;
return this;
|
public void | resume(android.view.View sceneRoot)
super.resume(sceneRoot);
int numTransitions = mTransitions.size();
for (int i = 0; i < numTransitions; ++i) {
mTransitions.get(i).resume(sceneRoot);
}
|
protected void | runAnimators()
if (mTransitions.isEmpty()) {
start();
end();
return;
}
setupStartEndListeners();
int numTransitions = mTransitions.size();
if (!mPlayTogether) {
// Setup sequence with listeners
// TODO: Need to add listeners in such a way that we can remove them later if canceled
for (int i = 1; i < numTransitions; ++i) {
Transition previousTransition = mTransitions.get(i - 1);
final Transition nextTransition = mTransitions.get(i);
previousTransition.addListener(new TransitionListenerAdapter() {
@Override
public void onTransitionEnd(Transition transition) {
nextTransition.runAnimators();
transition.removeListener(this);
}
});
}
Transition firstTransition = mTransitions.get(0);
if (firstTransition != null) {
firstTransition.runAnimators();
}
} else {
for (int i = 0; i < numTransitions; ++i) {
mTransitions.get(i).runAnimators();
}
}
|
void | setCanRemoveViews(boolean canRemoveViews)
super.setCanRemoveViews(canRemoveViews);
int numTransitions = mTransitions.size();
for (int i = 0; i < numTransitions; ++i) {
mTransitions.get(i).setCanRemoveViews(canRemoveViews);
}
|
public android.transition.TransitionSet | setDuration(long duration)Setting a non-negative duration on a TransitionSet causes all of the child
transitions (current and future) to inherit this duration.
super.setDuration(duration);
if (mDuration >= 0 && mTransitions != null) {
int numTransitions = mTransitions.size();
for (int i = 0; i < numTransitions; ++i) {
mTransitions.get(i).setDuration(duration);
}
}
return this;
|
public void | setEpicenterCallback(EpicenterCallback epicenterCallback)
super.setEpicenterCallback(epicenterCallback);
int numTransitions = mTransitions.size();
for (int i = 0; i < numTransitions; ++i) {
mTransitions.get(i).setEpicenterCallback(epicenterCallback);
}
|
public android.transition.TransitionSet | setInterpolator(android.animation.TimeInterpolator interpolator)
return (TransitionSet) super.setInterpolator(interpolator);
|
public android.transition.TransitionSet | setOrdering(int ordering)Sets the play order of this set's child transitions.
switch (ordering) {
case ORDERING_SEQUENTIAL:
mPlayTogether = false;
break;
case ORDERING_TOGETHER:
mPlayTogether = true;
break;
default:
throw new AndroidRuntimeException("Invalid parameter for TransitionSet " +
"ordering: " + ordering);
}
return this;
|
public void | setPathMotion(PathMotion pathMotion)
super.setPathMotion(pathMotion);
for (int i = 0; i < mTransitions.size(); i++) {
mTransitions.get(i).setPathMotion(pathMotion);
}
|
public void | setPropagation(TransitionPropagation propagation)
super.setPropagation(propagation);
int numTransitions = mTransitions.size();
for (int i = 0; i < numTransitions; ++i) {
mTransitions.get(i).setPropagation(propagation);
}
|
android.transition.TransitionSet | setSceneRoot(android.view.ViewGroup sceneRoot)
super.setSceneRoot(sceneRoot);
int numTransitions = mTransitions.size();
for (int i = 0; i < numTransitions; ++i) {
mTransitions.get(i).setSceneRoot(sceneRoot);
}
return (TransitionSet) this;
|
public android.transition.TransitionSet | setStartDelay(long startDelay)
return (TransitionSet) super.setStartDelay(startDelay);
|
private void | setupStartEndListeners()Sets up listeners for each of the child transitions. This is used to
determine when this transition set is finished (all child transitions
must finish first).
TransitionSetListener listener = new TransitionSetListener(this);
for (Transition childTransition : mTransitions) {
childTransition.addListener(listener);
}
mCurrentListeners = mTransitions.size();
|
java.lang.String | toString(java.lang.String indent)
String result = super.toString(indent);
for (int i = 0; i < mTransitions.size(); ++i) {
result += "\n" + mTransitions.get(i).toString(indent + " ");
}
return result;
|