Skip to content

Commit

Permalink
[MOD/#32] 검색 결과 flow 1차적 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
0zlrlo committed Jun 30, 2023
1 parent 5931d22 commit 7e0a770
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions app/src/main/res/layout/activity_search.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@
android:text="@string/search_count"
android:textColor="@color/gray900" />

<TextView
android:id="@+id/tv_search_end"
style="@style/BodySemibold14"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/search_result_end"
android:textColor="@color/gray900" />

<androidx.constraintlayout.helper.widget.Flow
android:id="@+id/flow_search"
android:layout_width="wrap_content"
Expand All @@ -103,6 +111,16 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/view_search_baseline" />

<androidx.constraintlayout.helper.widget.Flow
android:id="@+id/flow_search2"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginTop="34dp"
android:visibility="@{vm.searchList == null ? View.GONE : View.VISIBLE}"
app:constraint_referenced_ids="tv_search_count,tv_search_end"
app:layout_constraintStart_toEndOf="@id/flow_search"
app:layout_constraintTop_toBottomOf="@id/view_search_baseline" />


<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_search_result_content"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
<string name="search_content">제목, 키워드</string>
<string name="search_cancel">취소</string>
<string name="search_result">검색결과</string>
<string name="search_count">%s개</string>
<string name="search_count">%s</string>
<string name="search_result_end">개</string>
<string name="search_category">기획</string>
<string name="search_title">행주산성 맛집 투어</string>
<string name="search_period">%s–%s</string>
Expand Down

0 comments on commit 7e0a770

Please sign in to comment.