-
Notifications
You must be signed in to change notification settings - Fork 1
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
검색 - 키워드 입력 #266
검색 - 키워드 입력 #266
Conversation
…-catchy-tape into android/feature/30
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.
고생하셨습니다~
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<EditText |
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.
검색 UI 구현할때,
com.google.android.material.search.SearchView
을 쓰지 않은 이유가 있으신가요? (궁금해서 여쭤봅니다)
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.
SearchView보다 EditText를 커스텀하는 게 더 쉬울 거라 생각했어
android:text="@{viewModel.uiState.keyword}" | ||
android:onTextChanged="@{(text, s, b, c) -> viewModel.updateKeyword(text.toString())}" |
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.
텍스트가 바뀌면 viewmodel에 업데이트 하고 또 viewmodel에서 업데이트 된 텍스트를 text에 넣는 것 같은데, 위에 android:text="@{viewModel.uiState.keyword}"
는 없어도 될 것 같슴다
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.
ViewModel에서 text를 조작하는 경우를 고려한 코드긴 한데, 일단 제거하고 올릴게!
혹시나 테스트 해봤는데 무한 루프는 안 생기는 거 같아
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.
코멘트 외엔 의견 없습니당 ㅎㅎ 고생하셨어요~
Issue
Overview
Screenshot