Skip to content

Commit

Permalink
[fix]: 뷰페이저 함수화
Browse files Browse the repository at this point in the history
  • Loading branch information
kangyuri1114 committed Jan 3, 2024
1 parent 66850b4 commit 75aa724
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ class LoginActivity : AppCompatActivity() {
private val loginViewModel: LoginViewModel by viewModels()
private lateinit var loginViewPagerAdapter: LoginViewPagerAdapter

// 삭제 예정
private val dummyImageList = listOf(
DummyImage(
Image = R.drawable.login_sample_rectagle_viewpager,
),
DummyImage(
Image = R.drawable.login_sample_rectagle_viewpager,
),
DummyImage(
Image = R.drawable.login_sample_rectagle_viewpager,
),
)

private val callback: (OAuthToken?, Throwable?) -> Unit = { token, error ->
when {
error != null -> {
Expand All @@ -37,23 +50,10 @@ class LoginActivity : AppCompatActivity() {
binding.btnLogin.setOnClickListener {
loginWithKakaoApp()
}

setLoginViewPager()
}

private fun setLoginViewPager() {
val dummyImageList = listOf(
DummyImage(
Image = R.drawable.login_sample_rectagle_viewpager,
),
DummyImage(
Image = R.drawable.login_sample_rectagle_viewpager,
),
DummyImage(
Image = R.drawable.login_sample_rectagle_viewpager,
),
)

loginViewPagerAdapter = LoginViewPagerAdapter(dummyImageList)
binding.run {
vpLogin.adapter = loginViewPagerAdapter
Expand Down

0 comments on commit 75aa724

Please sign in to comment.