Exemplo n.º 1
0
  /** Stops all transitions */
  @Override
  public void stopTransition() {
    if (!mAdapterState.isTransiting()) {
      return;
    }

    notifyStopTransition();
    mTransitionManager.stopTransition();
    mAdapterState.setTransiting(false);
  }
Exemplo n.º 2
0
  @Override
  public boolean startTransition(float progress) {
    if (mAdapterState.isTransiting()) {
      return false;
    }

    // call listeners so they can perform their actions first, like modifying this adapter's
    // transitions
    notifyStartTransition();

    mTransitionManager.startTransition(progress);
    mAdapterState.setTransiting(true);
    return true;
  }
Exemplo n.º 3
0
 @Override
 public List<ITransition> getTransitions() {
   return mTransitionManager.getTransitions();
 }
Exemplo n.º 4
0
 @Override
 public void removeAllTransitions() {
   stopTransition();
   mTransitionManager.removeAllTransitions();
 }
Exemplo n.º 5
0
 @Override
 public boolean removeTransition(@NonNull ITransition transition) {
   return mTransitionManager.removeTransition(transition);
 }
Exemplo n.º 6
0
 @Override
 public void addAllTransitions(@NonNull List<ITransition> transitionsList) {
   mTransitionManager.addAllTransitions(transitionsList);
 }
Exemplo n.º 7
0
 @Override
 public void addTransition(@NonNull ITransition transition) {
   mTransitionManager.addTransition(transition);
 }
Exemplo n.º 8
0
 @Override
 public void addTransition(@NonNull BaseTransitionBuilder transitionBuilder) {
   mTransitionManager.addTransition(transitionBuilder);
 }
Exemplo n.º 9
0
 /**
  * Updates the transition progress
  *
  * @param value
  */
 public void updateProgress(float value) {
   mTransitionManager.updateProgress(value);
 }