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

검색 - 키워드 입력 #266

Merged
merged 5 commits into from
Dec 5, 2023
Merged

검색 - 키워드 입력 #266

merged 5 commits into from
Dec 5, 2023

Conversation

HamBP
Copy link
Member

@HamBP HamBP commented Dec 4, 2023

Issue

Overview

  • 검색어를 입력한다.
  • x 버튼은 일단 안 했어유

Screenshot

@HamBP HamBP added ✨ feat 기능 개발 🤖 android android labels Dec 4, 2023
@HamBP HamBP self-assigned this Dec 4, 2023
@HamBP HamBP added this to the 🔎 search milestone Dec 4, 2023
@HamBP HamBP linked an issue Dec 4, 2023 that may be closed by this pull request
Copy link

github-actions bot commented Dec 4, 2023

Test Results

6 tests   6 ✔️  1s ⏱️
2 suites  0 💤
2 files    0

Results for commit 485573b.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@2taezeat 2taezeat left a 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
Copy link
Collaborator

@2taezeat 2taezeat Dec 5, 2023

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 을 쓰지 않은 이유가 있으신가요? (궁금해서 여쭤봅니다)

https://github.com/material-components/material-components-android/blob/master/docs/components/Search.md

Copy link
Member Author

@HamBP HamBP Dec 5, 2023

Choose a reason for hiding this comment

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

SearchView보다 EditText를 커스텀하는 게 더 쉬울 거라 생각했어

Comment on lines 23 to 24
android:text="@{viewModel.uiState.keyword}"
android:onTextChanged="@{(text, s, b, c) -> viewModel.updateKeyword(text.toString())}"
Copy link
Member

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}" 는 없어도 될 것 같슴다

Copy link
Member Author

Choose a reason for hiding this comment

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

ViewModel에서 text를 조작하는 경우를 고려한 코드긴 한데, 일단 제거하고 올릴게!
혹시나 테스트 해봤는데 무한 루프는 안 생기는 거 같아

Copy link
Member

Choose a reason for hiding this comment

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

아항 그런 의도의 코드였군요 !

Copy link
Member

@youlalala youlalala left a comment

Choose a reason for hiding this comment

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

코멘트 외엔 의견 없습니당 ㅎㅎ 고생하셨어요~

@HamBP HamBP merged commit 1edcda5 into develop Dec 5, 2023
2 checks passed
@HamBP HamBP deleted the android/feature/30 branch December 5, 2023 06:52
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.

검색 - 키워드 입력
3 participants