Search in sources :

Example 1 with Slide

use of android.support.transition.Slide in project samourai-wallet-android by Samourai-Wallet.

the class SendTransactionDetailsView method showTransaction.

public void showTransaction() {
    TransitionSet set = new TransitionSet();
    set.setOrdering(TransitionSet.ORDERING_TOGETHER);
    set.addTransition(new Fade()).addTarget(transactionReview).addTransition(new Slide(Gravity.START)).addTarget(transactionView);
    TransitionManager.beginDelayedTransition(this, set);
    addView(transactionView);
    reviewActive = false;
    removeView(transactionReview);
}
Also used : TransitionSet(android.support.transition.TransitionSet) Slide(android.support.transition.Slide) Fade(android.support.transition.Fade)

Example 2 with Slide

use of android.support.transition.Slide in project samourai-wallet-android by Samourai-Wallet.

the class SendTransactionDetailsView method showReview.

/**
 * Shows review layout with transition
 *
 * @param ricochet will be used to show and hide ricochet hops slider
 */
public void showReview(boolean ricochet) {
    TransitionSet set = new TransitionSet();
    set.setOrdering(TransitionSet.ORDERING_TOGETHER);
    set.addTransition(new Fade()).addTarget(transactionView).addTransition(new Slide(Gravity.END)).addTarget(transactionReview);
    // 
    // if (ricochet) {
    // //            ricochetHopsReview.setVisibility(View.VISIBLE);
    // stoneWallReview.setVisibility(View.GONE);
    // } else {
    // ricochetHopsReview.setVisibility(View.GONE);
    // stoneWallReview.setVisibility(View.VISIBLE);
    // }
    TransitionManager.beginDelayedTransition(this, set);
    addView(transactionReview);
    reviewActive = true;
    removeView(transactionView);
}
Also used : TransitionSet(android.support.transition.TransitionSet) Slide(android.support.transition.Slide) Fade(android.support.transition.Fade)

Aggregations

Fade (android.support.transition.Fade)2 Slide (android.support.transition.Slide)2 TransitionSet (android.support.transition.TransitionSet)2