package com.remax.visualnovel.extension

import androidx.appcompat.app.AppCompatActivity
import com.remax.visualnovel.R

/**
 * Activity打开动画 从下往上
 */
fun AppCompatActivity.withTransitionFromBottom() {
    overridePendingTransition(R.anim.act_slide_in_from_bottom, R.anim.no_anim)
}


fun AppCompatActivity.transitionFromBottom() {
    overridePendingTransition(R.anim.no_anim, R.anim.act_slide_out_from_bottom)
}


fun AppCompatActivity.withTransitionFromAlpha() {
    overridePendingTransition(R.anim.dialog_alpha_show, R.anim.no_anim)
}


fun AppCompatActivity.transitionFromAlpha() {
    overridePendingTransition(R.anim.no_anim, R.anim.dialog_alpha_cancel)
}
