-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
308 additions
and
142 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
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ package com.happy.friendogly.data.model | |
enum class ClubStateDto { | ||
OPEN, | ||
CLOSE, | ||
FULL, | ||
} |
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 |
---|---|---|
|
@@ -4,5 +4,6 @@ enum class ClubState( | |
val clubStateName: String, | ||
) { | ||
OPEN("모집중"), | ||
CLOSE("모집완료"), | ||
CLOSE("모집종료"), | ||
FULL("모집완료"), | ||
} |
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
10 changes: 0 additions & 10 deletions
10
.../src/main/java/com/happy/friendogly/presentation/ui/club/common/mapper/ClubStateMapper.kt
This file was deleted.
Oops, something went wrong.
3 changes: 2 additions & 1 deletion
3
...p/src/main/java/com/happy/friendogly/presentation/ui/club/common/model/ClubItemUiModel.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
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
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 |
---|---|---|
|
@@ -5,5 +5,5 @@ interface ClubModifyActionHandler { | |
|
||
fun submitModify() | ||
|
||
fun selectClubImage() | ||
fun openSelectState() | ||
} |
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
54 changes: 54 additions & 0 deletions
54
...c/main/java/com/happy/friendogly/presentation/ui/club/modify/ClubModifyBindingAdapters.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,54 @@ | ||
package com.happy.friendogly.presentation.ui.club.modify | ||
|
||
import android.view.View | ||
import android.widget.ImageView | ||
import android.widget.TextView | ||
import androidx.core.content.ContextCompat | ||
import androidx.databinding.BindingAdapter | ||
import com.happy.friendogly.R | ||
import com.happy.friendogly.domain.model.ClubState | ||
|
||
@BindingAdapter("selectModifyStateBackground") | ||
fun View.bindSelectModifyStateBackground(clubState: ClubState) { | ||
val backgroundTint = | ||
if (clubState == ClubState.FULL) { | ||
ContextCompat.getColorStateList( | ||
context, | ||
R.color.gray300, | ||
) | ||
} else { | ||
ContextCompat.getColorStateList( | ||
context, | ||
R.color.coral300, | ||
) | ||
} | ||
this.backgroundTintList = backgroundTint | ||
} | ||
|
||
@BindingAdapter("selectModifyStateTypeStyle") | ||
fun TextView.bindSelectModifyStateTypeStyle(clubState: ClubState) { | ||
val textStyle = | ||
if (clubState == ClubState.FULL) { | ||
R.style.Theme_AppCompat_TextView_SemiBold_Gray07_Size14 | ||
} else { | ||
R.style.Theme_AppCompat_TextView_SemiBold_White_Size14 | ||
} | ||
this.setTextAppearance(textStyle) | ||
} | ||
|
||
@BindingAdapter("selectModifyStateImageTint") | ||
fun ImageView.bindSelectModifyStateImageTint(clubState: ClubState) { | ||
val backgroundTint = | ||
if (clubState == ClubState.FULL) { | ||
ContextCompat.getColorStateList( | ||
context, | ||
R.color.gray700, | ||
) | ||
} else { | ||
ContextCompat.getColorStateList( | ||
context, | ||
R.color.white, | ||
) | ||
} | ||
this.imageTintList = backgroundTint | ||
} |
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
3 changes: 2 additions & 1 deletion
3
...d/app/src/main/java/com/happy/friendogly/presentation/ui/club/modify/ClubModifyUiModel.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,11 @@ | ||
package com.happy.friendogly.presentation.ui.club.modify | ||
|
||
import com.happy.friendogly.domain.model.ClubState | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class ClubModifyUiModel( | ||
val title: String, | ||
val content: String, | ||
val clubPoster: String?, | ||
val clubState: ClubState, | ||
) |
Oops, something went wrong.