-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Feat/#35] 화면 전환 로직붙이기
- Loading branch information
Showing
36 changed files
with
313 additions
and
80 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
app/src/main/java/com/sopt/umbba_android/presentation/BasicAppbarFragment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.sopt.umbba_android.presentation | ||
|
||
import android.content.Context | ||
import android.os.Bundle | ||
import android.util.AttributeSet | ||
import android.view.View | ||
import android.view.View.OnClickListener | ||
import com.sopt.umbba_android.R | ||
import com.sopt.umbba_android.databinding.BasicAppbarBinding | ||
import com.sopt.umbba_android.util.binding.BindingFragment | ||
|
||
class BasicAppbarFragment : BindingFragment<BasicAppbarBinding>(R.layout.basic_appbar) { | ||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | ||
super.onViewCreated(view, savedInstanceState) | ||
} | ||
} |
15 changes: 13 additions & 2 deletions
15
app/src/main/java/com/sopt/umbba_android/presentation/home/HomeFragment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 13 additions & 1 deletion
14
app/src/main/java/com/sopt/umbba_android/presentation/invite/InviteCodeActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
package com.sopt.umbba_android.presentation.invite | ||
|
||
import android.os.Bundle | ||
import android.view.View | ||
import com.sopt.umbba_android.R | ||
import com.sopt.umbba_android.databinding.ActivityInviteCodeBinding | ||
import com.sopt.umbba_android.util.binding.BindingActivity | ||
|
||
class InviteCodeActivity : | ||
BindingActivity<ActivityInviteCodeBinding>(R.layout.activity_invite_code) { | ||
BindingActivity<ActivityInviteCodeBinding>(R.layout.activity_invite_code), | ||
View.OnClickListener { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
binding.clickListener = this | ||
} | ||
|
||
override fun onClick(view: View?) { | ||
when (view?.id) { | ||
R.id.iv_basic_back -> finish() | ||
} | ||
} | ||
} |
10 changes: 9 additions & 1 deletion
10
app/src/main/java/com/sopt/umbba_android/presentation/onboarding/InputInfoActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
package com.sopt.umbba_android.presentation.onboarding | ||
|
||
import android.os.Bundle | ||
import android.view.View | ||
import com.sopt.umbba_android.R | ||
import com.sopt.umbba_android.databinding.ActivityInputInfoBinding | ||
import com.sopt.umbba_android.util.binding.BindingActivity | ||
|
||
class InputInfoActivity : BindingActivity<ActivityInputInfoBinding>(R.layout.activity_input_info) { | ||
class InputInfoActivity : BindingActivity<ActivityInputInfoBinding>(R.layout.activity_input_info), | ||
View.OnClickListener { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
binding.clickListener = this | ||
} | ||
|
||
override fun onClick(view: View?) { | ||
when (view?.id) { | ||
R.id.iv_basic_back -> finish() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 9 additions & 1 deletion
10
app/src/main/java/com/sopt/umbba_android/presentation/onboarding/QuestActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 10 additions & 1 deletion
11
app/src/main/java/com/sopt/umbba_android/presentation/onboarding/SelectFamilyActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
package com.sopt.umbba_android.presentation.onboarding | ||
|
||
import android.os.Bundle | ||
import android.view.View | ||
import com.sopt.umbba_android.R | ||
import com.sopt.umbba_android.databinding.ActivitySelectFamilyBinding | ||
import com.sopt.umbba_android.util.binding.BindingActivity | ||
|
||
class SelectFamilyActivity : BindingActivity<ActivitySelectFamilyBinding>(R.layout.activity_select_family) { | ||
class SelectFamilyActivity : | ||
BindingActivity<ActivitySelectFamilyBinding>(R.layout.activity_select_family), | ||
View.OnClickListener { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
binding.clickListener = this | ||
} | ||
|
||
override fun onClick(view: View?) { | ||
when (view?.id) { | ||
R.id.iv_basic_back -> finish() | ||
} | ||
} | ||
} |
12 changes: 10 additions & 2 deletions
12
app/src/main/java/com/sopt/umbba_android/presentation/onboarding/SetTimeActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 15 additions & 1 deletion
16
app/src/main/java/com/sopt/umbba_android/presentation/qna/AnswerActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
package com.sopt.umbba_android.presentation.qna | ||
|
||
import android.os.Bundle | ||
import android.view.View | ||
import com.sopt.umbba_android.R | ||
import com.sopt.umbba_android.databinding.ActivityAnswerBinding | ||
import com.sopt.umbba_android.util.binding.BindingActivity | ||
|
||
class AnswerActivity: BindingActivity<ActivityAnswerBinding>(R.layout.activity_answer) { | ||
class AnswerActivity : BindingActivity<ActivityAnswerBinding>(R.layout.activity_answer), | ||
View.OnClickListener { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
binding.clickListener = this | ||
} | ||
|
||
override fun onClick(view: View?) { | ||
when (view?.id) { | ||
R.id.iv_qna_back -> TODO("진짜 뒤로갈거냐는 Dialog 띄우기 ") | ||
R.id.iv_check -> TODO("답변 이거 맞냐고 확인하는 Dialog 띄우기") | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 16 additions & 1 deletion
17
app/src/main/java/com/sopt/umbba_android/presentation/setting/DeleteAccountActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
package com.sopt.umbba_android.presentation.setting | ||
|
||
import android.os.Bundle | ||
import android.view.View | ||
import com.sopt.umbba_android.R | ||
import com.sopt.umbba_android.databinding.ActivityDeleteAccountBinding | ||
import com.sopt.umbba_android.util.binding.BindingActivity | ||
|
||
class DeleteAccountActivity : BindingActivity<ActivityDeleteAccountBinding>(R.layout.activity_delete_account){ | ||
class DeleteAccountActivity : | ||
BindingActivity<ActivityDeleteAccountBinding>(R.layout.activity_delete_account), | ||
View.OnClickListener { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
binding.clickListener = this | ||
} | ||
|
||
override fun onClick(view: View?) { | ||
when (view?.id) { | ||
R.id.iv_basic_back -> { | ||
finish() | ||
} | ||
} | ||
} | ||
} |
28 changes: 27 additions & 1 deletion
28
app/src/main/java/com/sopt/umbba_android/presentation/setting/ManageAccountActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,35 @@ | ||
package com.sopt.umbba_android.presentation.setting | ||
|
||
import android.content.Intent | ||
import android.os.Bundle | ||
import android.view.View | ||
import com.sopt.umbba_android.R | ||
import com.sopt.umbba_android.databinding.ActivityManageAccountBinding | ||
import com.sopt.umbba_android.util.binding.BindingActivity | ||
|
||
class ManageAccountActivity: BindingActivity<ActivityManageAccountBinding>(R.layout.activity_manage_account) { | ||
class ManageAccountActivity : | ||
BindingActivity<ActivityManageAccountBinding>(R.layout.activity_manage_account), | ||
View.OnClickListener { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
binding.clickListener = this | ||
setClickEvent() | ||
} | ||
|
||
override fun onClick(view: View?) { | ||
when (view?.id) { | ||
R.id.iv_basic_back -> finish() | ||
} | ||
} | ||
|
||
private fun setClickEvent() { | ||
with(binding) { | ||
clLogout.setOnClickListener { | ||
TODO("서버 로그아웃 API 연결") | ||
} | ||
clDeleteAccount.setOnClickListener { | ||
startActivity(Intent(this@ManageAccountActivity, DeleteAccountActivity::class.java)) | ||
} | ||
} | ||
} | ||
} |
22 changes: 21 additions & 1 deletion
22
app/src/main/java/com/sopt/umbba_android/presentation/setting/SettingFragment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,33 @@ | ||
package com.sopt.umbba_android.presentation.setting | ||
|
||
import android.content.Intent | ||
import android.os.Bundle | ||
import android.view.View | ||
import com.sopt.umbba_android.R | ||
import com.sopt.umbba_android.databinding.FragmentSettingBinding | ||
import com.sopt.umbba_android.util.binding.BindingFragment | ||
|
||
class SettingFragment:BindingFragment<FragmentSettingBinding>(R.layout.fragment_setting) { | ||
class SettingFragment : BindingFragment<FragmentSettingBinding>(R.layout.fragment_setting) { | ||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | ||
super.onViewCreated(view, savedInstanceState) | ||
setClickEvent() | ||
} | ||
|
||
private fun setClickEvent() { | ||
with(binding) { | ||
clManageAccount.setOnClickListener { | ||
startActivity(Intent(requireActivity(), ManageAccountActivity::class.java)) | ||
} | ||
clAboutUmbba.setOnClickListener { | ||
TODO("엄빠소개 노션으로 이동하도록 만들기. Uri 연결하기") | ||
} | ||
clTos.setOnClickListener { | ||
TODO("이용약관 노션으로 이동하도록 만들기. Uri 연결하기") | ||
} | ||
clNotice.setOnClickListener { | ||
TODO("개인정보처리방침 노션으로 이동하도록 만들기. Uri 연결하기") | ||
} | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:color="@color/umbba_white" android:state_enabled="false" /> | ||
<item android:color="@color/primary_500" android:state_enabled="true"/> | ||
<item android:color="@color/umbba_white" android:state_enabled="true" /> | ||
<item android:color="@color/primary_500" android:state_enabled="false"/> | ||
</selector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:drawable="@drawable/shape_gradient_btn_r50_rect" android:state_enabled="false" /> | ||
<item android:drawable="@drawable/shape_pri500_btn_stroke_r50_rect" android:state_enabled="true" /> | ||
<item android:drawable="@drawable/shape_gradient_btn_r50_rect" android:state_enabled="true" /> | ||
<item android:drawable="@drawable/shape_pri500_btn_stroke_r50_rect" android:state_enabled="false" /> | ||
</selector> |
Oops, something went wrong.