-
Notifications
You must be signed in to change notification settings - Fork 8
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(FakeFestivalRepository): 가짜 축제 저장소를 필터링 작업에 용이하게 변경 * feat(FestivalFilterUiState): FestivalFilterUiState 는 tabPosition 을 가진다 * feat(FestivalTabUiState): selected 람다에 포지션이 아닌 FestivalFilterUiState 를 넘긴다 * feat(FakeFestivalRepository): 가짜 축제 저장소는 예정된 축제를 반환할 수 있다 * feat(FestivalListViewModel): 같은 필터가 아니면 축제 목록을 변경한다 * feat(FestivalListMoreItemViewHolder): more item 프로그래스바 뷰 아이템 생성 * feat(FestivalListAdapter): 축제 목록에 더보기 아이템 추가 * feat(FestivalListAdapter): isLast 가 false 일때만 더보기를 추가한다. * feat(FestivalListViewModel): 현재 축제 목록 불러오기 함수 분리 * feat(FestivalList): Success State recyclerView get items 로직 병합 * feat(FestivalListViewModel): 축제 목록 초기화와 축제 목록 추가 로드를 분리한다
- Loading branch information
1 parent
465a484
commit 0bcd8d7
Showing
12 changed files
with
179 additions
and
52 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
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
24 changes: 24 additions & 0 deletions
24
...tago/festago/presentation/ui/home/festivallist/festival/FestivalListMoreItemViewHolder.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,24 @@ | ||
package com.festago.festago.presentation.ui.home.festivallist.festival | ||
|
||
import android.view.LayoutInflater | ||
import android.view.ViewGroup | ||
import com.festago.festago.presentation.databinding.ItemFestivalListMoreItemBinding | ||
import com.festago.festago.presentation.ui.home.festivallist.uistate.FestivalMoreItemUiState | ||
|
||
class FestivalListMoreItemViewHolder(val binding: ItemFestivalListMoreItemBinding) : | ||
FestivalListViewHolder(binding) { | ||
|
||
fun bind(festivalMoreItemUiState: FestivalMoreItemUiState) { | ||
} | ||
|
||
companion object { | ||
fun of(parent: ViewGroup): FestivalListMoreItemViewHolder { | ||
val binding = ItemFestivalListMoreItemBinding.inflate( | ||
LayoutInflater.from(parent.context), | ||
parent, | ||
false, | ||
) | ||
return FestivalListMoreItemViewHolder(binding) | ||
} | ||
} | ||
} |
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
4 changes: 2 additions & 2 deletions
4
...va/com/festago/festago/presentation/ui/home/festivallist/uistate/FestivalFilterUiState.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,5 +1,5 @@ | ||
package com.festago.festago.presentation.ui.home.festivallist.uistate | ||
|
||
enum class FestivalFilterUiState { | ||
PROGRESS, PLANNED | ||
enum class FestivalFilterUiState(val tabPosition: Int) { | ||
PROGRESS(0), PLANNED(1) | ||
} |
Oops, something went wrong.