Skip to content

Commit

Permalink
[fix/#170] 카드 후면 클릭 허용
Browse files Browse the repository at this point in the history
  • Loading branch information
blueme0 committed Feb 16, 2024
1 parent 5d8dab1 commit bf1cc7c
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import android.animation.AnimatorSet
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.View
import androidx.core.animation.doOnEnd
import androidx.fragment.app.activityViewModels
import com.teumteum.base.BindingFragment
import com.teumteum.base.util.extension.setOnSingleClickListener
Expand Down Expand Up @@ -226,12 +227,20 @@ class CardFixFragment
isFront = if (isFront) {
frontAnimation.setTarget(binding.cardviewFront)
backAnimation.setTarget(binding.cardviewBack)
frontAnimation.doOnEnd {
binding.cardviewFront.visibility = View.INVISIBLE
}
frontAnimation.start()
backAnimation.start()
false

} else {
binding.cardviewFront.visibility = View.VISIBLE
frontAnimation.setTarget(binding.cardviewBack)
backAnimation.setTarget(binding.cardviewFront)
frontAnimation.doOnEnd {
binding.cardviewFront.visibility = View.VISIBLE
}
backAnimation.start()
frontAnimation.start()
true
Expand Down

0 comments on commit bf1cc7c

Please sign in to comment.