-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #203 from TeamPINGLE/feat-list-search-map
[feat] 리스트 뷰 <-> 검색 뷰 <-> 지도 뷰 플로우 구현
- Loading branch information
Showing
15 changed files
with
335 additions
and
63 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
app/src/main/java/org/sopt/pingle/presentation/model/SearchModel.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,11 @@ | ||
package org.sopt.pingle.presentation.model | ||
|
||
import android.os.Parcelable | ||
import kotlinx.parcelize.Parcelize | ||
import org.sopt.pingle.presentation.type.HomeViewType | ||
|
||
@Parcelize | ||
data class SearchModel( | ||
val homeViewType: HomeViewType, | ||
val searchWord: String | ||
) : Parcelable |
25 changes: 25 additions & 0 deletions
25
app/src/main/java/org/sopt/pingle/presentation/type/HomeViewType.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,25 @@ | ||
package org.sopt.pingle.presentation.type | ||
|
||
import androidx.annotation.DrawableRes | ||
import androidx.annotation.StringRes | ||
import org.sopt.pingle.R | ||
|
||
enum class HomeViewType( | ||
val index: Int, | ||
@DrawableRes val fabDrawableRes: Int, | ||
@StringRes val searchHintRes: Int, | ||
@StringRes val searchDescriptionRes: Int | ||
) { | ||
MAP( | ||
index = 0, | ||
fabDrawableRes = R.drawable.ic_map_list_24, | ||
searchHintRes = R.string.home_view_map_search_hint, | ||
searchDescriptionRes = R.string.home_view_map_search_description | ||
), | ||
MAIN_LIST( | ||
index = 1, | ||
fabDrawableRes = R.drawable.ic_map_map_24, | ||
searchHintRes = R.string.home_view_main_list_search_hint, | ||
searchDescriptionRes = R.string.home_view_main_list_search_description | ||
) | ||
} |
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
Oops, something went wrong.