-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/develop' into setting/#15-compose-designsystem
- Loading branch information
Showing
36 changed files
with
1,364 additions
and
36 deletions.
There are no files selected for viewing
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
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
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
core/common/src/main/res/drawable/ic_share_bottomsheet_bar.xml
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,13 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="46dp" | ||
android:height="4dp" | ||
android:viewportWidth="46" | ||
android:viewportHeight="4"> | ||
<path | ||
android:pathData="M2,2H44" | ||
android:strokeLineJoin="round" | ||
android:strokeWidth="4" | ||
android:fillColor="#00000000" | ||
android:strokeColor="#AEAEAE" | ||
android:strokeLineCap="round"/> | ||
</vector> |
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,2 +1,11 @@ | ||
package com.teamwable.ui.util | ||
|
||
// 전역적으로 쓰이는 키 값 관리 | ||
object BottomSheetTag { | ||
const val PROFILE_HAMBURGER_BOTTOM_SHEET = "ProfileHamburgerBottomSheet" | ||
} | ||
|
||
object DialogTag { | ||
const val PROFILE_DELETE_DIALOG = "ProfileDeleteDialog" | ||
const val LOGOUT_DIALOG = "LogoutDialog" | ||
} |
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,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:color="@color/purple_50" android:state_enabled="true" /> | ||
<item android:color="@color/gray_200" 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<corners android:radius="12dp" /> | ||
</shape> |
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<corners | ||
android:topLeftRadius="16dp" | ||
android:topRightRadius="16dp" /> | ||
</shape> |
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,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<solid android:color="@color/white" /> | ||
<stroke | ||
android:width="1dp" | ||
android:color="@color/gray_200" /> | ||
<corners android:radius="16dp" /> | ||
</shape> |
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,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<navigation xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@+id/graph_home" | ||
app:startDestination="@id/navigation_home"> | ||
|
||
<fragment | ||
android:id="@+id/navigation_home" | ||
android:name="com.teamwable.home.HomeFragment" | ||
android:label="HomeFragment" | ||
tools:layout="@layout/fragment_home" /> | ||
</navigation> |
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
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,19 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<menu xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item | ||
android:id="@+id/navigation_home" | ||
android:id="@+id/graph_home" | ||
android:icon="@drawable/sel_main_bnv_home" | ||
android:title="@string/label_bnv_home" /> | ||
<item | ||
android:id="@+id/navigation_news" | ||
android:id="@+id/graph_news" | ||
android:icon="@drawable/sel_main_bnv_news" | ||
android:title="@string/label_bnv_news" /> | ||
<item | ||
android:id="@+id/navigation_notification" | ||
android:id="@+id/graph_notification" | ||
android:icon="@drawable/sel_main_bnv_notification" | ||
android:title="@string/label_bnv_notification" /> | ||
<item | ||
android:id="@+id/navigation_profile" | ||
android:id="@+id/graph_profile" | ||
android:icon="@drawable/sel_main_bnv_profile" | ||
android:title="@string/label_bnv_profile" /> | ||
</menu> |
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,33 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<navigation xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@+id/graph_main" | ||
app:startDestination="@id/navigation_home"> | ||
app:startDestination="@id/graph_home"> | ||
|
||
<fragment | ||
android:id="@+id/navigation_home" | ||
android:name="com.teamwable.home.HomeFragment" | ||
android:label="HomeFragment" | ||
tools:layout="@layout/fragment_home" /> | ||
<fragment | ||
android:id="@+id/navigation_news" | ||
android:name="com.teamwable.news.NewsFragment" | ||
android:label="NewsFragment" | ||
tools:layout="@layout/fragment_news" /> | ||
<fragment | ||
android:id="@+id/navigation_notification" | ||
android:name="com.teamwable.notification.NotificationFragment" | ||
android:label="NotificationFragment" | ||
tools:layout="@layout/fragment_notification" /> | ||
<fragment | ||
android:id="@+id/navigation_profile" | ||
android:name="com.teamwable.profile.ProfileFragment" | ||
android:label="ProfileFragment" | ||
tools:layout="@layout/fragment_profile" /> | ||
<fragment | ||
android:id="@+id/navigation_posting" | ||
android:name="com.teamwable.posting.PostingFragment" | ||
android:label="PostingFragment" | ||
tools:layout="@layout/fragment_posting" /> | ||
<include app:graph="@navigation/graph_home" /> | ||
<include app:graph="@navigation/graph_news" /> | ||
<include app:graph="@navigation/graph_notification" /> | ||
<include app:graph="@navigation/graph_profile" /> | ||
<include app:graph="@navigation/graph_posting" /> | ||
</navigation> |
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,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<navigation xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@+id/graph_news" | ||
app:startDestination="@id/navigation_news"> | ||
|
||
<fragment | ||
android:id="@+id/navigation_news" | ||
android:name="com.teamwable.news.NewsFragment" | ||
android:label="NewsFragment" | ||
tools:layout="@layout/fragment_news" /> | ||
</navigation> |
13 changes: 13 additions & 0 deletions
13
feature/notification/src/main/res/navigation/graph_notification.xml
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,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<navigation xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@+id/graph_notification" | ||
app:startDestination="@id/navigation_notification"> | ||
|
||
<fragment | ||
android:id="@+id/navigation_notification" | ||
android:name="com.teamwable.notification.NotificationFragment" | ||
android:label="NotificationFragment" | ||
tools:layout="@layout/fragment_notification" /> | ||
</navigation> |
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,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<navigation xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@+id/graph_posting" | ||
app:startDestination="@id/navigation_posting"> | ||
|
||
<fragment | ||
android:id="@+id/navigation_posting" | ||
android:name="com.teamwable.posting.PostingFragment" | ||
android:label="PostingFragment" | ||
tools:layout="@layout/fragment_posting" /> | ||
</navigation> |
38 changes: 38 additions & 0 deletions
38
feature/profile/src/main/java/com/teamwable/profile/LogoutDialogFragment.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,38 @@ | ||
package com.teamwable.profile | ||
|
||
import com.teamwable.profile.databinding.FragmentDeleteDialogBinding | ||
import com.teamwable.ui.base.BindingDialogFragment | ||
import com.teamwable.ui.extensions.dialogFragmentResize | ||
import com.teamwable.ui.extensions.stringOf | ||
|
||
class LogoutDialogFragment : BindingDialogFragment<FragmentDeleteDialogBinding>(R.layout.fragment_delete_dialog, FragmentDeleteDialogBinding::inflate) { | ||
override fun initView() { | ||
initText() | ||
initCancelBtnClickListener() | ||
initDeleteBtnClickListener() | ||
} | ||
|
||
private fun initText() { | ||
with(binding) { | ||
tvDeleteDialogTitle.text = stringOf(R.string.tv_logout_dialog_title) | ||
btnDeleteDialogDelete.text = stringOf(R.string.btn_logout_dialog_delete) | ||
} | ||
} | ||
|
||
override fun onResume() { | ||
super.onResume() | ||
context?.dialogFragmentResize(this, 30.0f) | ||
} | ||
|
||
private fun initCancelBtnClickListener() { | ||
binding.btnDeleteDialogCancel.setOnClickListener { | ||
dismiss() | ||
} | ||
} | ||
|
||
private fun initDeleteBtnClickListener() { | ||
binding.btnDeleteDialogDelete.setOnClickListener { | ||
// Todo : 나중에 추가해야 함 | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
feature/profile/src/main/java/com/teamwable/profile/ProfileDeleteConfirmFragment.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,46 @@ | ||
package com.teamwable.profile | ||
|
||
import androidx.navigation.fragment.findNavController | ||
import com.teamwable.profile.databinding.FragmentProfileDeleteConfirmBinding | ||
import com.teamwable.ui.base.BindingFragment | ||
import com.teamwable.ui.extensions.colorOf | ||
import com.teamwable.ui.extensions.stringOf | ||
import com.teamwable.ui.util.DialogTag.PROFILE_DELETE_DIALOG | ||
|
||
class ProfileDeleteConfirmFragment : BindingFragment<FragmentProfileDeleteConfirmBinding>(FragmentProfileDeleteConfirmBinding::inflate) { | ||
override fun initView() { | ||
setAppbarText() | ||
initBackBtnClickListener() | ||
initCheckBoxClickListener() | ||
} | ||
|
||
private fun initCheckBoxClickListener() { | ||
binding.cbProfileDeleteConfirm.setOnClickListener { | ||
binding.btnProfileDeleteConfirmNext.apply { | ||
isEnabled = binding.cbProfileDeleteConfirm.isChecked | ||
if (isEnabled) { | ||
setTextColor(colorOf(com.teamwable.ui.R.color.white)) | ||
setOnClickListener { | ||
showToProfileDeleteDialogFragment() | ||
} | ||
} else { | ||
setTextColor(colorOf(com.teamwable.ui.R.color.gray_600)) | ||
} | ||
} | ||
} | ||
} | ||
|
||
private fun setAppbarText() { | ||
binding.viewProfileDeleteConfirmAppbar.tvProfileAppbarTitle.text = stringOf(R.string.appbar_profile_delete_title) | ||
} | ||
|
||
private fun initBackBtnClickListener() { | ||
binding.viewProfileDeleteConfirmAppbar.btnProfileAppbarBack.setOnClickListener { | ||
findNavController().popBackStack() | ||
} | ||
} | ||
|
||
private fun showToProfileDeleteDialogFragment() { | ||
ProfileDeleteDialogFragment().show(childFragmentManager, PROFILE_DELETE_DIALOG) | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
feature/profile/src/main/java/com/teamwable/profile/ProfileDeleteDialogFragment.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,37 @@ | ||
package com.teamwable.profile | ||
|
||
import com.teamwable.profile.databinding.FragmentDeleteDialogBinding | ||
import com.teamwable.ui.base.BindingDialogFragment | ||
import com.teamwable.ui.extensions.dialogFragmentResize | ||
import com.teamwable.ui.extensions.stringOf | ||
|
||
class ProfileDeleteDialogFragment : BindingDialogFragment<FragmentDeleteDialogBinding>(R.layout.fragment_delete_dialog, FragmentDeleteDialogBinding::inflate) { | ||
override fun initView() { | ||
initText() | ||
initCancelBtnClickListener() | ||
initDeleteBtnClickListener() | ||
} | ||
|
||
private fun initText() { | ||
with(binding) { | ||
tvDeleteDialogTitle.text = stringOf(R.string.tv_profile_delete_dialog_title) | ||
} | ||
} | ||
|
||
override fun onResume() { | ||
super.onResume() | ||
context?.dialogFragmentResize(this, 30.0f) | ||
} | ||
|
||
private fun initCancelBtnClickListener() { | ||
binding.btnDeleteDialogCancel.setOnClickListener { | ||
dismiss() | ||
} | ||
} | ||
|
||
private fun initDeleteBtnClickListener() { | ||
binding.btnDeleteDialogDelete.setOnClickListener { | ||
// Todo : 나중에 추가해야 함 | ||
} | ||
} | ||
} |
Oops, something went wrong.