-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
There was a problem hiding this 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 == "수컷") { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이런 경우에도 예외를 전파할 수 있나요?
else -> error()
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Int.MAX_VALUE / 2 무슨 의미인가용?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
중간 페이지라는 의미입니다. 코드 이해를 돕기위해 변수를 하나 만들었습니다!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@BindingAdapter("setUpIndicator") | ||
fun LinearLayout.bindSetUpIndicator(size: Int) { | ||
removeAllViews() | ||
|
||
val layoutParams = | ||
LinearLayout.LayoutParams( | ||
ViewGroup.LayoutParams.WRAP_CONTENT, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아마 indicator를 만들려고 binidngAdapter를 만든거 같은데, 이 부분은 tabLayout을 viewPager에 연결시켜서 커스텀하는게 코드가 더 깔끔한걸로 알고있어요!! 다음에 시간 날때 리팩터링 하면 좋을 것 같습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네네!! 다음에 리팩터링 진행하도록 하겠습니다!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생했어요!
…riendogly into feature/dog_detail
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굳!
이슈
개발 사항
2024-07-18.6.24.40.mov
전달 사항 (없으면 삭제해 주세요)
아직 도메인이 없어서 BindingAdapter에서 하드 코딩을 통한 분기처리를 진행했습니다.