Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AN] feat: 내 강아지 상세 화면 #116

Merged
merged 4 commits into from
Jul 19, 2024
Merged

Conversation

junjange
Copy link
Member

@junjange junjange commented Jul 18, 2024

이슈

개발 사항

  • 강아지 프로필 클릭시 강아지 상세 화면으로 이동
  • 내 강아지 상세 화면 보기
  • 스와이프를 통해 강아지 보기
2024-07-18.6.24.40.mov

전달 사항 (없으면 삭제해 주세요)

아직 도메인이 없어서 BindingAdapter에서 하드 코딩을 통한 분기처리를 진행했습니다.

@junjange junjange added 🤖 android android ✨ feat 기능 개발 labels Jul 18, 2024
@junjange junjange self-assigned this Jul 18, 2024
Copy link

Test Results

3 tests  ±0   3 ✅ ±0   0s ⏱️ ±0s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit 60cc239. ± Comparison against base commit ffcb405.

jinuemong
jinuemong previously approved these changes Jul 19, 2024
Copy link
Contributor

@jinuemong jinuemong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다 👍


@BindingAdapter("genderDrawable")
fun ImageView.bindGenderDrawable(gender: String) {
if (gender == "수컷") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enum 클래스로 분리한거 아닌가요 !!! 활용하면 좋을 것 가타요

}

@BindingAdapter("dogSize")
fun TextView.bindDogSize(sizeType: String) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이런 경우에도 예외를 전파할 수 있나요?
else -> error()

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

음 전파를 못할 것 같습니다. 이부분은 같이 고민해봐요!!

private val _uiState: MutableLiveData<DogDetailUiState> = MutableLiveData(DogDetailUiState())
val uiState: LiveData<DogDetailUiState> get() = _uiState

private val _currentPage: MutableLiveData<Int> = MutableLiveData(Int.MAX_VALUE / 2)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Int.MAX_VALUE / 2 무슨 의미인가용?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

중간 페이지라는 의미입니다. 코드 이해를 돕기위해 변수를 하나 만들었습니다!!

gaeun5744
gaeun5744 previously approved these changes Jul 19, 2024
Copy link
Member

@gaeun5744 gaeun5744 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Comment on lines +14 to +20
@BindingAdapter("setUpIndicator")
fun LinearLayout.bindSetUpIndicator(size: Int) {
removeAllViews()

val layoutParams =
LinearLayout.LayoutParams(
ViewGroup.LayoutParams.WRAP_CONTENT,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아마 indicator를 만들려고 binidngAdapter를 만든거 같은데, 이 부분은 tabLayout을 viewPager에 연결시켜서 커스텀하는게 코드가 더 깔끔한걸로 알고있어요!! 다음에 시간 날때 리팩터링 하면 좋을 것 같습니다!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

네네!! 다음에 리팩터링 진행하도록 하겠습니다!!

dpcks0509
dpcks0509 previously approved these changes Jul 19, 2024
Copy link
Contributor

@dpcks0509 dpcks0509 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생했어요!

@junjange junjange dismissed stale reviews from dpcks0509, gaeun5744, and jinuemong via bd5241c July 19, 2024 07:46
Copy link
Contributor

@dpcks0509 dpcks0509 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

굳!

@junjange junjange merged commit 6b98496 into develop Jul 19, 2024
1 check passed
@junjange junjange deleted the feature/dog_detail branch July 19, 2024 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 android android ✨ feat 기능 개발
Projects
None yet
Development

Successfully merging this pull request may close these issues.

내 강아지 상세 화면
4 participants