Skip to content

Commit

Permalink
[Feat/#65] MainActivity 연결
Browse files Browse the repository at this point in the history
  • Loading branch information
yeoncheong committed Jul 15, 2023
1 parent 4ba3d7e commit 5496c74
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
package com.sopt.umbba_android.presentation.onboarding

import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.View
import android.view.animation.AnimationUtils
import com.sopt.umbba_android.R
import com.sopt.umbba_android.databinding.ActivityOnboardingFinishBinding
import com.sopt.umbba_android.presentation.MainActivity
import com.sopt.umbba_android.util.binding.BindingActivity

class OnboardingFinishActivity : BindingActivity<ActivityOnboardingFinishBinding>(R.layout.activity_onboarding_finish) {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

animateFadeBackground()
goMainActivity()
}

private fun animateFadeBackground() {
Expand All @@ -32,4 +35,10 @@ class OnboardingFinishActivity : BindingActivity<ActivityOnboardingFinishBinding
},2000)

}

private fun goMainActivity() {
binding.btnStart.setOnClickListener {
startActivity(Intent(this, MainActivity::class.java))
}
}
}

0 comments on commit 5496c74

Please sign in to comment.