-
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.
* feat: 공동구매 상태 관리 리소스 파일 * feat: 공동구매 상태를 관리하는 enum class 구현 * feat: 데이터바인딩을 사용하여 공동 구매 상태 뷰 업데이트 구현 * style: ktlint 적용 * feat: 공동구매 상태 관리 리소스 파일 추가
- Loading branch information
Showing
11 changed files
with
324 additions
and
5 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
android/app/src/main/java/com/zzang/chongdae/domain/model/OfferingStatus.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,23 @@ | ||
package com.zzang.chongdae.domain.model | ||
|
||
import androidx.annotation.DrawableRes | ||
import com.zzang.chongdae.R | ||
|
||
enum class OfferingStatus( | ||
val statusText: String, | ||
val buttonText: String, | ||
@DrawableRes val imageRes: Int, | ||
) { | ||
Recruiting("인원확정", "일정수정", R.drawable.ic_comment_detail_recruiting), | ||
Scheduling("일정확정", "일정수정", R.drawable.ic_comment_detail_scheduling), | ||
Purchasing("구매확정", "일정수정", R.drawable.ic_comment_detail_purchasing), | ||
Dealing("거래확정", "신고하기", R.drawable.ic_comment_detail_dealing), | ||
Completed("거래완료", "신고하기", R.drawable.ic_comment_detail_completed), | ||
; | ||
|
||
companion object { | ||
fun nextStatus(currentStatus: OfferingStatus): OfferingStatus { | ||
return entries[(currentStatus.ordinal + 1) % entries.size] | ||
} | ||
} | ||
} |
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
61 changes: 61 additions & 0 deletions
61
android/app/src/main/res/drawable/ic_comment_detail_completed.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,61 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="285dp" | ||
android:height="78dp" | ||
android:viewportWidth="285" | ||
android:viewportHeight="78"> | ||
<path | ||
android:pathData="M168.95,64.1H174.76V65.15H168.95V64.1ZM167.99,68.04H176.37V69.11H167.99V68.04ZM171.46,68.79H172.8V72.83H171.46V68.79ZM174.07,64.1H175.38V64.92C175.38,65.92 175.38,67.04 175.02,68.68L173.71,68.53C174.07,66.98 174.07,65.88 174.07,64.92V64.1ZM183.87,63.56H185.14V72.82H183.87V63.56ZM182.76,67.09H184.29V68.16H182.76V67.09ZM181.84,63.7H183.09V72.4H181.84V63.7ZM177.44,64.51H181.1V70.51H177.44V64.51ZM179.86,65.55H178.68V69.47H179.86V65.55ZM189.9,68.21H191.23V69.84H189.9V68.21ZM186.38,67.77H194.75V68.82H186.38V67.77ZM190.55,69.48C192.55,69.48 193.76,70.08 193.76,71.15C193.76,72.22 192.55,72.82 190.55,72.82C188.54,72.82 187.33,72.22 187.33,71.15C187.33,70.08 188.54,69.48 190.55,69.48ZM190.55,70.48C189.31,70.48 188.68,70.69 188.68,71.15C188.68,71.6 189.31,71.82 190.55,71.82C191.79,71.82 192.42,71.6 192.42,71.15C192.42,70.69 191.79,70.48 190.55,70.48ZM189.65,64.43H190.83V64.66C190.83,66.05 189.58,67.19 187.19,67.41L186.73,66.37C188.76,66.2 189.65,65.38 189.65,64.66V64.43ZM190.3,64.43H191.48V64.66C191.48,65.39 192.36,66.2 194.4,66.37L193.94,67.41C191.56,67.19 190.3,66.06 190.3,64.66V64.43ZM187.14,63.94H194V64.99H187.14V63.94Z" | ||
android:fillColor="#F15642"/> | ||
<path | ||
android:pathData="M250.2,63.56H251.53V72.82H250.2V63.56ZM248.41,67.11H250.84V68.19H248.41V67.11ZM247.16,64.52H248.47C248.47,67.33 247.58,69.62 244.37,71.23L243.67,70.19C246.29,68.89 247.16,67.21 247.16,64.76V64.52ZM244.11,64.52H247.86V65.57H244.11V64.52ZM253.23,69.68H253.88C254.98,69.68 255.95,69.66 257.09,69.48L257.19,70.55C256.01,70.75 255.01,70.78 253.88,70.78H253.23V69.68ZM253.22,64.46H256.73V68.04H254.52V70.08H253.23V66.99H255.44V65.52H253.22V64.46ZM259.67,63.56H260.93V72.82H259.67V63.56ZM258.43,67.06H259.97V68.12H258.43V67.06ZM257.6,63.72H258.83V72.38H257.6V63.72ZM265.7,68.21H267.03V69.84H265.7V68.21ZM262.18,67.77H270.55V68.82H262.18V67.77ZM266.35,69.48C268.35,69.48 269.56,70.08 269.56,71.15C269.56,72.22 268.35,72.82 266.35,72.82C264.34,72.82 263.13,72.22 263.13,71.15C263.13,70.08 264.34,69.48 266.35,69.48ZM266.35,70.48C265.11,70.48 264.48,70.69 264.48,71.15C264.48,71.6 265.11,71.82 266.35,71.82C267.59,71.82 268.22,71.6 268.22,71.15C268.22,70.69 267.59,70.48 266.35,70.48ZM265.45,64.43H266.63V64.66C266.63,66.05 265.38,67.19 262.99,67.41L262.53,66.37C264.56,66.2 265.45,65.38 265.45,64.66V64.43ZM266.1,64.43H267.28V64.66C267.28,65.39 268.16,66.2 270.2,66.37L269.74,67.41C267.36,67.19 266.1,66.06 266.1,64.66V64.43ZM262.94,63.94H269.8V64.99H262.94V63.94Z" | ||
android:fillColor="#F15642"/> | ||
<path | ||
android:pathData="M85.13,62.83C86.54,62.83 87.6,63.71 87.6,64.95C87.6,66.18 86.54,67.06 85.13,67.06C83.72,67.06 82.66,66.18 82.66,64.95C82.66,63.71 83.72,62.83 85.13,62.83ZM85.13,63.91C84.45,63.91 83.94,64.29 83.94,64.95C83.94,65.61 84.45,65.99 85.13,65.99C85.81,65.99 86.31,65.61 86.31,64.95C86.31,64.29 85.81,63.91 85.13,63.91ZM88.88,62.56H90.22V67.19H88.88V62.56ZM84.04,67.57H90.22V70.11H85.36V71.23H84.06V69.15H88.9V68.6H84.04V67.57ZM84.06,70.69H90.45V71.72H84.06V70.69ZM96.74,64.8H98.5V65.88H96.74V64.8ZM98.14,62.56H99.47V68.06H98.14V62.56ZM96.33,68.26C98.29,68.26 99.5,68.93 99.5,70.05C99.5,71.18 98.29,71.83 96.33,71.83C94.37,71.83 93.16,71.18 93.16,70.05C93.16,68.93 94.37,68.26 96.33,68.26ZM96.33,69.27C95.13,69.27 94.49,69.52 94.49,70.05C94.49,70.57 95.13,70.82 96.33,70.82C97.54,70.82 98.18,70.57 98.18,70.05C98.18,69.52 97.54,69.27 96.33,69.27ZM93.86,63.49H94.94V64.07C94.94,65.84 94.12,67.46 92.35,68.06L91.67,67.01C93.2,66.49 93.86,65.26 93.86,64.07V63.49ZM94.14,63.49H95.21V64.07C95.21,65.16 95.84,66.29 97.3,66.78L96.65,67.83C94.93,67.26 94.14,65.72 94.14,64.07V63.49ZM92.03,63.12H97.01V64.18H92.03V63.12ZM100.93,69.67H109.31V70.75H100.93V69.67ZM104.45,67.62H105.78V69.97H104.45V67.62ZM104.41,63.77H105.53V64.1C105.53,66.05 104.13,67.6 101.77,68.03L101.25,66.98C103.31,66.66 104.41,65.38 104.41,64.1V63.77ZM104.68,63.77H105.8V64.1C105.8,65.38 106.9,66.62 109.01,66.93L108.5,67.98C106.1,67.56 104.68,66.05 104.68,64.1V63.77ZM101.62,63.26H108.59V64.32H101.62V63.26ZM115.14,64.8H116.9V65.88H115.14V64.8ZM116.54,62.56H117.87V68.06H116.54V62.56ZM114.73,68.26C116.69,68.26 117.9,68.93 117.9,70.05C117.9,71.18 116.69,71.83 114.73,71.83C112.77,71.83 111.56,71.18 111.56,70.05C111.56,68.93 112.77,68.26 114.73,68.26ZM114.73,69.27C113.53,69.27 112.89,69.52 112.89,70.05C112.89,70.57 113.53,70.82 114.73,70.82C115.94,70.82 116.58,70.57 116.58,70.05C116.58,69.52 115.94,69.27 114.73,69.27ZM112.26,63.49H113.34V64.07C113.34,65.84 112.52,67.46 110.75,68.06L110.07,67.01C111.6,66.49 112.26,65.26 112.26,64.07V63.49ZM112.54,63.49H113.61V64.07C113.61,65.16 114.24,66.29 115.7,66.78L115.05,67.83C113.33,67.26 112.54,65.72 112.54,64.07V63.49ZM110.43,63.12H115.41V64.18H110.43V63.12ZM122.83,67.21H124.17V68.84H122.83V67.21ZM119.32,66.77H127.68V67.82H119.32V66.77ZM123.49,68.48C125.49,68.48 126.69,69.08 126.69,70.15C126.69,71.22 125.49,71.82 123.49,71.82C121.47,71.82 120.26,71.22 120.26,70.15C120.26,69.08 121.47,68.48 123.49,68.48ZM123.49,69.48C122.25,69.48 121.61,69.69 121.61,70.15C121.61,70.6 122.25,70.82 123.49,70.82C124.72,70.82 125.36,70.6 125.36,70.15C125.36,69.69 124.72,69.48 123.49,69.48ZM122.58,63.43H123.76V63.66C123.76,65.05 122.51,66.19 120.13,66.41L119.67,65.37C121.69,65.2 122.58,64.38 122.58,63.66V63.43ZM123.24,63.43H124.42V63.66C124.42,64.39 125.29,65.2 127.33,65.37L126.88,66.41C124.5,66.19 123.24,65.06 123.24,63.66V63.43ZM120.07,62.94H126.93V63.99H120.07V62.94Z" | ||
android:fillColor="#F15642"/> | ||
<path | ||
android:pathData="M104.97,28.08m-28.08,0a28.08,28.08 0,1 1,56.15 0a28.08,28.08 0,1 1,-56.15 0" | ||
android:fillColor="#F15642"/> | ||
<path | ||
android:pathData="M180.6,28.08m-28.08,0a28.08,28.08 0,1 1,56.15 0a28.08,28.08 0,1 1,-56.15 0" | ||
android:fillColor="#F15642"/> | ||
<path | ||
android:pathData="M256.92,28.08m-28.08,0a28.08,28.08 0,1 1,56.15 0a28.08,28.08 0,1 1,-56.15 0" | ||
android:fillColor="#F15642"/> | ||
<path | ||
android:strokeWidth="1" | ||
android:pathData="M133.05,28.13L152.87,28.13" | ||
android:fillColor="#00000000" | ||
android:strokeColor="#F15642"/> | ||
<path | ||
android:strokeWidth="1" | ||
android:pathData="M209.03,28.13L228.85,28.13" | ||
android:fillColor="#00000000" | ||
android:strokeColor="#F15642"/> | ||
<path | ||
android:strokeWidth="1" | ||
android:pathData="M55.92,28.17L76.9,28.17" | ||
android:fillColor="#00000000" | ||
android:strokeColor="#F15642"/> | ||
<path | ||
android:pathData="M15.61,70.4H23.99V71.48H15.61V70.4ZM19.12,68.35H20.45V70.65H19.12V68.35ZM16.48,63.97H23.07V68.52H16.48V63.97ZM21.77,65.03H17.79V67.47H21.77V65.03ZM27.05,64.09H28.14V64.66C28.14,66.32 27.28,67.82 25.5,68.36L24.83,67.32C26.38,66.87 27.05,65.75 27.05,64.66V64.09ZM27.32,64.09H28.41V64.66C28.41,65.69 29.08,66.74 30.58,67.17L29.93,68.2C28.18,67.69 27.32,66.26 27.32,64.66V64.09ZM25.19,63.79H30.23V64.84H25.19V63.79ZM31.16,63.29H32.5V68.31H31.16V63.29ZM26.34,68.71H27.65V69.55H31.18V68.71H32.5V72.45H26.34V68.71ZM27.65,70.58V71.39H31.18V70.58H27.65ZM37.52,67.94H38.85V69.57H37.52V67.94ZM34,67.5H42.37V68.55H34V67.5ZM38.17,69.21C40.17,69.21 41.38,69.81 41.38,70.88C41.38,71.95 40.17,72.55 38.17,72.55C36.16,72.55 34.95,71.95 34.95,70.88C34.95,69.81 36.16,69.21 38.17,69.21ZM38.17,70.21C36.93,70.21 36.3,70.42 36.3,70.88C36.3,71.33 36.93,71.55 38.17,71.55C39.41,71.55 40.04,71.33 40.04,70.88C40.04,70.42 39.41,70.21 38.17,70.21ZM37.27,64.16H38.45V64.39C38.45,65.78 37.2,66.92 34.81,67.14L34.35,66.1C36.38,65.93 37.27,65.11 37.27,64.39V64.16ZM37.92,64.16H39.1V64.39C39.1,65.12 39.98,65.93 42.02,66.1L41.56,67.14C39.18,66.92 37.92,65.79 37.92,64.39V64.16ZM34.76,63.67H41.62V64.72H34.76V63.67Z" | ||
android:fillColor="#F15642"/> | ||
<path | ||
android:pathData="M28.08,29m-28.08,0a28.08,28.08 0,1 1,56.15 0a28.08,28.08 0,1 1,-56.15 0" | ||
android:fillColor="#F15642"/> | ||
<path | ||
android:pathData="M18.49,38.82C18.49,34.74 21.8,31.43 25.88,31.43C29.97,31.43 33.28,34.74 33.28,38.82H31.43C31.43,35.76 28.94,33.28 25.88,33.28C22.82,33.28 20.34,35.76 20.34,38.82H18.49ZM25.88,30.5C22.82,30.5 20.34,28.02 20.34,24.96C20.34,21.89 22.82,19.41 25.88,19.41C28.95,19.41 31.43,21.89 31.43,24.96C31.43,28.02 28.95,30.5 25.88,30.5ZM25.88,28.65C27.92,28.65 29.58,27 29.58,24.96C29.58,22.91 27.92,21.26 25.88,21.26C23.84,21.26 22.18,22.91 22.18,24.96C22.18,27 23.84,28.65 25.88,28.65ZM33.54,32.08C36.11,33.24 37.9,35.82 37.9,38.82H36.05C36.05,36.57 34.71,34.63 32.78,33.76L33.54,32.08ZM32.9,21.64C34.75,22.4 36.05,24.22 36.05,26.34C36.05,29 34.02,31.17 31.43,31.41V29.55C33,29.32 34.2,27.97 34.2,26.34C34.2,25.07 33.46,23.96 32.39,23.44L32.9,21.64Z" | ||
android:fillColor="#ffffff"/> | ||
<path | ||
android:pathData="M181.17,16.64C185.15,16.64 188.38,19.91 188.38,23.94V25.15H193.19V27.58H191.79L190.88,38.63C190.83,39.26 190.31,39.75 189.68,39.75H172.67C172.04,39.75 171.52,39.26 171.47,38.63L170.56,27.58H169.16V25.15H173.96V23.94C173.96,19.91 177.19,16.64 181.17,16.64ZM189.38,27.58H172.97L173.77,37.31H188.57L189.38,27.58ZM182.38,30.02V34.88H179.97V30.02H182.38ZM177.57,30.02V34.88H175.16V30.02H177.57ZM187.18,30.02V34.88H184.78V30.02H187.18ZM181.17,19.07C178.6,19.07 176.5,21.12 176.37,23.69L176.37,23.94V25.15H185.98V23.94C185.98,21.33 183.96,19.2 181.41,19.08L181.17,19.07Z" | ||
android:fillColor="#ffffff"/> | ||
<group> | ||
<clip-path | ||
android:pathData="M244.03,15.71h24.03v24.03h-24.03z"/> | ||
<path | ||
android:pathData="M255.57,29.98L256.98,31.39L265.46,22.91L266.88,24.33L256.98,34.22L250.61,27.85L252.03,26.43L254.15,28.56L255.57,29.98ZM255.57,27.14L260.53,22.18L261.94,23.6L256.98,28.56L255.57,27.14ZM252.74,32.81L251.33,34.22L244.95,27.85L246.37,26.43L247.79,27.85L247.78,27.85L252.74,32.81Z" | ||
android:fillColor="#ffffff"/> | ||
</group> | ||
<path | ||
android:pathData="M99.83,21.26V19.41H101.68V21.26H107.22V19.41H109.07V21.26H112.77C113.28,21.26 113.69,21.67 113.69,22.18V26.81H111.85V23.11H109.07V24.96H107.22V23.11H101.68V24.96H99.83V23.11H97.06V36.05H102.6V37.9H96.13C95.62,37.9 95.21,37.48 95.21,36.97V22.18C95.21,21.67 95.62,21.26 96.13,21.26H99.83ZM109.07,29.58C107.03,29.58 105.38,31.23 105.38,33.28C105.38,35.32 107.03,36.97 109.07,36.97C111.12,36.97 112.77,35.32 112.77,33.28C112.77,31.23 111.12,29.58 109.07,29.58ZM103.53,33.28C103.53,30.21 106.01,27.73 109.07,27.73C112.14,27.73 114.62,30.21 114.62,33.28C114.62,36.34 112.14,38.82 109.07,38.82C106.01,38.82 103.53,36.34 103.53,33.28ZM108.15,30.5V33.66L110.27,35.78L111.58,34.47L110,32.89V30.5H108.15Z" | ||
android:fillColor="#ffffff"/> | ||
</vector> |
Oops, something went wrong.