Skip to content

Commit

Permalink
[Feat/#46] 로그인 ~ 초대하는 측 정보 입력 화면 연결
Browse files Browse the repository at this point in the history
  • Loading branch information
yeoncheong committed Jul 11, 2023
1 parent 887e954 commit db02470
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
package com.sopt.umbba_android.presentation.invite

import android.content.Intent
import android.os.Bundle
import com.sopt.umbba_android.R
import com.sopt.umbba_android.databinding.ActivityInviteBinding
import com.sopt.umbba_android.presentation.onboarding.CommunicationActivity
import com.sopt.umbba_android.util.binding.BindingActivity

class InviteActivity : BindingActivity<ActivityInviteBinding>(R.layout.activity_invite) {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

goCommunicationActivity()
goInviteCodeActivity()
}

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

private fun goInviteCodeActivity() {
binding.btnInputCode.setOnClickListener {
startActivity(Intent(this, InviteCodeActivity::class.java))
}
}
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
package com.sopt.umbba_android.presentation.login

import android.content.Intent
import android.graphics.Typeface
import android.os.Bundle
import android.text.Spannable
import android.text.SpannableStringBuilder
import android.text.style.StyleSpan
import android.text.util.Linkify
import android.view.View
import android.widget.TextView
import androidx.core.content.ContextCompat
import com.sopt.umbba_android.R
import com.sopt.umbba_android.databinding.ActivityAgreePrivacyUseBinding
import com.sopt.umbba_android.presentation.invite.InviteActivity
import com.sopt.umbba_android.util.binding.BindingActivity
import java.util.regex.Pattern

Expand Down Expand Up @@ -110,4 +111,10 @@ class AgreePrivacyUseActivity : BindingActivity<ActivityAgreePrivacyUseBinding>(
sentence.setSpan(StyleSpan(Typeface.BOLD), 5, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE)
view.text = sentence
}

private fun goInviteActivity() {
binding.btnNext.setOnClickListener {
startActivity(Intent(this, InviteActivity::class.java))
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.sopt.umbba_android.presentation.login

import android.content.Intent
import android.os.Bundle
import com.sopt.umbba_android.R
import com.sopt.umbba_android.databinding.ActivityLoginBinding
Expand All @@ -8,5 +9,18 @@ import com.sopt.umbba_android.util.binding.BindingActivity
class LoginActivity : BindingActivity<ActivityLoginBinding>(R.layout.activity_login) {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

loginWithKaKao()
}

private fun loginWithKaKao() {
//TODO("카카오 로그인 및 자동 로그인 진행")
goAgreePrivacyUseActivity()
}

private fun goAgreePrivacyUseActivity() {
binding.btnKakaoLogin.setOnClickListener {
startActivity(Intent(this, AgreePrivacyUseActivity::class.java))
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.sopt.umbba_android.presentation.onboarding

import android.content.Intent
import android.os.Bundle
import com.sopt.umbba_android.R
import com.sopt.umbba_android.databinding.ActivityCommunicationBinding
Expand All @@ -9,5 +10,12 @@ class CommunicationActivity : BindingActivity<ActivityCommunicationBinding>(R.la
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

goInputInfoActivity()
}

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

0 comments on commit db02470

Please sign in to comment.