-
Notifications
You must be signed in to change notification settings - Fork 1
hotfix: 피드 홈 UI 수정 #804
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
Open
s9hn
wants to merge
1
commit into
master
Choose a base branch
from
hotfix/803
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
hotfix: 피드 홈 UI 수정 #804
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -21,7 +21,7 @@ | |
| android:layout_width="92dp" | ||
| android:layout_height="30dp" | ||
| android:layout_marginStart="20dp" | ||
| android:layout_marginTop="20dp" | ||
| android:layout_marginTop="10dp" | ||
| android:src="@drawable/ic_home_logo" | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| app:layout_constraintTop_toTopOf="parent" /> | ||
|
|
@@ -40,7 +40,7 @@ | |
| <androidx.core.widget.NestedScrollView | ||
| android:layout_width="match_parent" | ||
| android:layout_height="0dp" | ||
| android:layout_marginTop="30dp" | ||
| android:layout_marginTop="10dp" | ||
| app:layout_constraintBottom_toBottomOf="parent" | ||
| app:layout_constraintEnd_toEndOf="parent" | ||
| app:layout_constraintStart_toStartOf="parent" | ||
|
|
@@ -50,15 +50,53 @@ | |
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent"> | ||
|
|
||
| <androidx.constraintlayout.widget.ConstraintLayout | ||
| android:id="@+id/cl_home_normal_search" | ||
| android:layout_width="0dp" | ||
| android:layout_height="wrap_content" | ||
| android:layout_marginHorizontal="20dp" | ||
| android:layout_marginTop="12dp" | ||
| android:background="@drawable/btn_explore_gray50_radius_14dp" | ||
| android:paddingHorizontal="16dp" | ||
| android:paddingVertical="12dp" | ||
| app:layout_constraintEnd_toEndOf="parent" | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| app:layout_constraintTop_toTopOf="parent"> | ||
|
|
||
| <TextView | ||
| android:id="@+id/tv_home_normal_hint" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="@string/explore_normal_search_hint" | ||
| android:textAppearance="@style/label1" | ||
| android:textColor="@color/gray_200_949399" | ||
| app:layout_constraintBottom_toBottomOf="@id/cl_home_normal_search" | ||
| app:layout_constraintStart_toStartOf="@id/cl_home_normal_search" | ||
| app:layout_constraintTop_toTopOf="@id/cl_home_normal_search" /> | ||
|
|
||
| <ImageView | ||
| android:id="@+id/iv_home_normal_search" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:contentDescription="@null" | ||
| android:src="@drawable/ic_explore_search" | ||
| app:layout_constraintBottom_toBottomOf="parent" | ||
| app:layout_constraintEnd_toEndOf="parent" | ||
| app:layout_constraintHorizontal_chainStyle="packed" | ||
| app:layout_constraintTop_toTopOf="parent" /> | ||
|
|
||
| </androidx.constraintlayout.widget.ConstraintLayout> | ||
|
Comment on lines
+53
to
+88
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 검색 영역에 접근성(contentDescription) 설정이 필요합니다.
♿ 접근성 개선 제안 <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_home_normal_search"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="12dp"
android:background="@drawable/btn_explore_gray50_radius_14dp"
+ android:contentDescription="@string/explore_normal_search_hint"
android:paddingHorizontal="16dp"
android:paddingVertical="12dp"🤖 Prompt for AI Agents |
||
|
|
||
| <TextView | ||
| android:id="@+id/tv_home_today_popular_novel" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_marginStart="20dp" | ||
| android:layout_marginTop="24dp" | ||
| android:text="@string/home_today_popular" | ||
| android:textAppearance="@style/headline1" | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| app:layout_constraintTop_toTopOf="parent" /> | ||
| app:layout_constraintTop_toBottomOf="@+id/cl_home_normal_search" /> | ||
|
|
||
| <androidx.recyclerview.widget.RecyclerView | ||
| android:id="@+id/rv_home_today_popular_novel" | ||
|
|
@@ -78,7 +116,7 @@ | |
| android:layout_width="28dp" | ||
| android:layout_height="16dp" | ||
| android:layout_marginStart="20dp" | ||
| android:layout_marginTop="62dp" | ||
| android:layout_marginTop="32dp" | ||
| android:src="@drawable/ic_home_hot" | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| app:layout_constraintTop_toBottomOf="@id/rv_home_today_popular_novel" /> | ||
|
|
@@ -124,7 +162,7 @@ | |
| android:id="@+id/tv_home_interest_feed" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_marginTop="76dp" | ||
| android:layout_marginTop="40dp" | ||
| android:paddingVertical="2dp" | ||
| android:text="@string/home_interest_feed" | ||
| android:textAppearance="@style/headline1" | ||
|
|
@@ -235,7 +273,7 @@ | |
| android:id="@+id/tv_home_recommend_novel" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_marginTop="56dp" | ||
| android:layout_marginTop="40dp" | ||
| android:paddingVertical="2dp" | ||
| android:text="@string/home_recommend_novel" | ||
| android:textAppearance="@style/headline1" | ||
|
|
||
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
startActivity대신startActivityLauncher를 사용해야 합니다.onPostInterestNovelClick()(Line 304-312)에서 동일한NormalExploreActivity를startActivityLauncher.launch()로 실행하고 있으며, 이를 통해NormalExploreBack.RESULT_OK결과를 수신하여homeViewModel.updateFeed()와homeViewModel.updateNovel()을 호출합니다 (Line 76-80).반면 이 메서드는
startActivity(intent)를 사용하므로, 검색 화면에서 돌아왔을 때 결과 콜백이 동작하지 않아 홈 화면의 피드/소설 데이터가 갱신되지 않습니다.🐛 startActivityLauncher 사용으로 수정
private fun onNormalSearchButtonClick() { binding.clHomeNormalSearch.setOnClickListener { tracker.trackEvent("general_search") val intent = NormalExploreActivity.getIntent(requireContext()) - startActivity(intent) + startActivityLauncher.launch(intent) } }📝 Committable suggestion
🤖 Prompt for AI Agents