Skip to content

Commit 3e452a9

Browse files
committed
feat : 장소 검색 뷰 수정
1 parent ea70835 commit 3e452a9

File tree

1 file changed

+8
-27
lines changed

1 file changed

+8
-27
lines changed

presentation/src/main/res/layout/fragment_place_search.xml

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
<androidx.constraintlayout.widget.ConstraintLayout
1414
android:layout_width="match_parent"
1515
android:layout_height="match_parent"
16-
tools:context=".ui.placesearch.PlaceSearchFragment">
16+
tools:context=".ui.placesearch.PlaceSearchFragment"
17+
tools:theme="@style/Theme.Material3.Light.NoActionBar">
1718

1819
<androidx.constraintlayout.widget.Guideline
1920
android:id="@+id/guide_line_start"
@@ -34,14 +35,13 @@
3435
android:layout_width="wrap_content"
3536
android:layout_height="wrap_content"
3637
android:orientation="horizontal"
37-
app:layout_constraintGuide_begin="55dp" />
38+
app:layout_constraintGuide_begin="35dp" />
3839

3940
<com.google.android.material.textfield.TextInputLayout
4041
android:id="@+id/text_input_layout_place_search"
4142
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
4243
android:layout_width="0dp"
4344
android:layout_height="wrap_content"
44-
android:layout_marginTop="50dp"
4545
app:endIconMode="clear_text"
4646
app:layout_constraintEnd_toEndOf="@id/guide_line_end"
4747
app:layout_constraintStart_toStartOf="@id/guide_line_start"
@@ -59,28 +59,11 @@
5959

6060
</com.google.android.material.textfield.TextInputLayout>
6161

62-
<TextView
63-
android:id="@+id/text_view_favorite"
64-
android:layout_width="wrap_content"
65-
android:layout_height="wrap_content"
66-
android:layout_marginTop="16dp"
67-
android:background="@drawable/background_gray_d9_8"
68-
android:drawablePadding="3dp"
69-
android:paddingHorizontal="12dp"
70-
android:paddingVertical="6dp"
71-
android:text="@string/favorite_text"
72-
android:textColor="@color/black"
73-
android:textSize="14sp"
74-
app:drawableStartCompat="@drawable/ic_baseline_star_outline_16"
75-
app:layout_constraintEnd_toStartOf="@id/text_view_current_location"
76-
app:layout_constraintHorizontal_chainStyle="spread_inside"
77-
app:layout_constraintStart_toStartOf="@id/guide_line_start"
78-
app:layout_constraintTop_toBottomOf="@id/text_input_layout_place_search" />
79-
8062
<TextView
8163
android:id="@+id/text_view_current_location"
8264
android:layout_width="wrap_content"
8365
android:layout_height="wrap_content"
66+
android:layout_marginTop="12dp"
8467
android:background="@drawable/background_gray_d9_8"
8568
android:drawablePadding="3dp"
8669
android:paddingHorizontal="12dp"
@@ -89,15 +72,14 @@
8972
android:textColor="@color/black"
9073
android:textSize="14sp"
9174
app:drawableStartCompat="@drawable/ic_baseline_location_searching_16"
92-
app:layout_constraintBottom_toBottomOf="@id/text_view_favorite"
93-
app:layout_constraintEnd_toStartOf="@id/text_view_select_map"
94-
app:layout_constraintStart_toEndOf="@id/text_view_favorite"
95-
app:layout_constraintTop_toTopOf="@id/text_view_favorite" />
75+
app:layout_constraintStart_toStartOf="@id/guide_line_start"
76+
app:layout_constraintTop_toBottomOf="@id/text_input_layout_place_search" />
9677

9778
<TextView
9879
android:id="@+id/text_view_select_map"
9980
android:layout_width="wrap_content"
10081
android:layout_height="wrap_content"
82+
android:layout_marginStart="12dp"
10183
android:background="@drawable/background_gray_d9_8"
10284
android:drawablePadding="3dp"
10385
android:paddingHorizontal="12dp"
@@ -107,7 +89,6 @@
10789
android:textSize="14sp"
10890
app:drawableStartCompat="@drawable/ic_baseline_map_16"
10991
app:layout_constraintBottom_toBottomOf="@id/text_view_current_location"
110-
app:layout_constraintEnd_toEndOf="@id/guide_line_end"
11192
app:layout_constraintStart_toEndOf="@id/text_view_current_location"
11293
app:layout_constraintTop_toTopOf="@id/text_view_current_location" />
11394

@@ -120,7 +101,7 @@
120101
app:layout_constraintBottom_toBottomOf="parent"
121102
app:layout_constraintEnd_toEndOf="@id/guide_line_end"
122103
app:layout_constraintStart_toStartOf="@id/guide_line_start"
123-
app:layout_constraintTop_toBottomOf="@id/text_view_favorite"
104+
app:layout_constraintTop_toBottomOf="@id/text_view_current_location"
124105
app:places="@{viewModel.nearPlaceList}" />
125106

126107

0 commit comments

Comments
 (0)