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);
}
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);
}
Aggregations