Skip to content

Commit bcb8934

Browse files
committed
style: home_panel 크기 변경
1 parent b73df5a commit bcb8934

File tree

2 files changed

+36
-35
lines changed

2 files changed

+36
-35
lines changed

presentation/src/main/res/drawable/background_button.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
android:shape="rectangle">
55

66
<solid android:color="@color/white" />
7-
<corners android:radius="30dp" />
7+
<corners android:radius="100dp" />
88
</shape>

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

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<layout
2+
<layout xmlns:tools="http://schemas.android.com/tools"
33
xmlns:android="http://schemas.android.com/apk/res/android"
44
xmlns:app="http://schemas.android.com/apk/res-auto"
55
xmlns:bind="http://schemas.android.com/apk/res-auto">
@@ -23,21 +23,21 @@
2323
android:layout_width="wrap_content"
2424
android:layout_height="wrap_content"
2525
android:orientation="vertical"
26-
app:layout_constraintGuide_begin="16dp" />
26+
app:layout_constraintGuide_percent="0.05" />
2727

2828
<androidx.constraintlayout.widget.Guideline
2929
android:id="@+id/guideline_end"
3030
android:layout_width="wrap_content"
3131
android:layout_height="wrap_content"
3232
android:orientation="vertical"
33-
app:layout_constraintGuide_end="16dp" />
33+
app:layout_constraintGuide_percent="0.95" />
3434

3535
<androidx.constraintlayout.widget.Guideline
3636
android:id="@+id/guideline_top"
3737
android:layout_width="wrap_content"
3838
android:layout_height="wrap_content"
3939
android:orientation="horizontal"
40-
app:layout_constraintGuide_begin="35dp" />
40+
app:layout_constraintGuide_percent="0.06" />
4141

4242
<androidx.constraintlayout.widget.Guideline
4343
android:id="@+id/guideline_bottom"
@@ -64,6 +64,8 @@
6464
android:elevation="15dp"
6565
android:gravity="center_vertical"
6666
android:padding="8dp"
67+
android:paddingStart="50dp"
68+
android:paddingEnd="0dp"
6769
android:text="@string/search_hint"
6870
android:textColor="@color/hint_text_color"
6971
android:textSize="17sp"
@@ -75,13 +77,15 @@
7577
<include
7678
android:id="@+id/home_panel"
7779
android:layout_width="0dp"
78-
android:layout_height="170dp"
79-
android:layout_marginTop="30dp"
80-
android:layout_marginEnd="90dp"
80+
android:layout_height="0dp"
81+
android:layout_marginEnd="15dp"
8182
android:elevation="15dp"
82-
app:layout_constraintBottom_toBottomOf="@id/guideline_bottom"
83-
app:layout_constraintEnd_toEndOf="parent"
8483
app:layout_constraintStart_toStartOf="@id/guideline_start"
84+
app:layout_constraintEnd_toStartOf="@id/layout_current"
85+
app:layout_constraintBottom_toBottomOf="@id/guideline_bottom"
86+
app:layout_constraintDimensionRatio="h,1.7:1"
87+
app:layout_constraintHorizontal_bias="1"
88+
app:layout_constraintWidth_max="300dp"
8589
bind:placeSearchViewModel="@{placeSearchViewModel}"
8690
layout="@layout/home_panel" />
8791

@@ -90,43 +94,40 @@
9094
android:layout_width="60dp"
9195
android:layout_height="60dp"
9296
android:layout_marginBottom="10dp"
93-
android:background="@drawable/background_button"
9497
android:elevation="15dp"
95-
app:layout_constraintBottom_toTopOf="@id/layout_current"
96-
app:layout_constraintEnd_toEndOf="@id/guideline_end">
98+
android:background="@drawable/background_button"
99+
app:layout_constraintEnd_toEndOf="@id/guideline_end"
100+
app:layout_constraintBottom_toTopOf="@id/layout_current">
97101

98102
<ImageView
99-
android:id="@+id/image_view_compass"
100-
android:layout_width="30dp"
101-
android:layout_height="30dp"
102-
android:elevation="15dp"
103-
app:layout_constraintBottom_toBottomOf="@id/layout_compass"
104-
app:layout_constraintEnd_toEndOf="@id/layout_compass"
105-
app:layout_constraintStart_toStartOf="@id/layout_compass"
106-
app:layout_constraintTop_toTopOf="@id/layout_compass"
107-
app:srcCompat="@drawable/ic_compass" />
103+
android:layout_width="0dp"
104+
android:layout_height="0dp"
105+
android:src="@drawable/ic_compass"
106+
app:layout_constraintWidth_percent="0.5"
107+
app:layout_constraintStart_toStartOf="parent"
108+
app:layout_constraintEnd_toEndOf="parent"
109+
app:layout_constraintTop_toTopOf="parent"
110+
app:layout_constraintBottom_toBottomOf="parent" />
108111
</androidx.constraintlayout.widget.ConstraintLayout>
109112

110113
<androidx.constraintlayout.widget.ConstraintLayout
111114
android:id="@+id/layout_current"
112115
android:layout_width="60dp"
113116
android:layout_height="60dp"
114-
android:layout_marginBottom="10dp"
115-
android:background="@drawable/background_button"
116117
android:elevation="15dp"
117-
app:layout_constraintBottom_toBottomOf="@id/guideline_bottom"
118-
app:layout_constraintEnd_toEndOf="@id/guideline_end">
118+
android:background="@drawable/background_button"
119+
app:layout_constraintEnd_toEndOf="@id/guideline_end"
120+
app:layout_constraintBottom_toBottomOf="@id/guideline_bottom">
119121

120122
<ImageView
121-
android:id="@+id/image_view_current"
122-
android:layout_width="30dp"
123-
android:layout_height="30dp"
124-
android:elevation="15dp"
125-
app:layout_constraintBottom_toBottomOf="@id/layout_current"
126-
app:layout_constraintEnd_toEndOf="@id/layout_current"
127-
app:layout_constraintStart_toStartOf="@id/layout_current"
128-
app:layout_constraintTop_toTopOf="@id/layout_current"
129-
app:srcCompat="@drawable/ic_location" />
123+
android:layout_width="0dp"
124+
android:layout_height="0dp"
125+
android:src="@drawable/ic_location"
126+
app:layout_constraintWidth_percent="0.5"
127+
app:layout_constraintStart_toStartOf="parent"
128+
app:layout_constraintEnd_toEndOf="parent"
129+
app:layout_constraintTop_toTopOf="parent"
130+
app:layout_constraintBottom_toBottomOf="parent" />
130131
</androidx.constraintlayout.widget.ConstraintLayout>
131132

132133
<androidx.coordinatorlayout.widget.CoordinatorLayout

0 commit comments

Comments
 (0)