-
Notifications
You must be signed in to change notification settings - Fork 4
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
refactor: 업로드 뷰 디자인 변경 #381
The head ref may contain hidden characters: "refactor/#379_\uC5C5\uB85C\uB4DC_\uBDF0_\uB514\uC790\uC778_\uBCC0\uACBD"
Changes from 5 commits
811753f
e990ef9
bb2d7e4
d72796a
2fd0d1a
e28f68b
25790ae
ef42cc1
6bc1833
4a33dae
6485bc1
753094c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,17 +33,40 @@ | |
app:lottie_loop="true" | ||
app:lottie_rawRes="@raw/simple_loading" /> | ||
|
||
<ImageView | ||
android:id="@+id/iv_upload_back" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="8dp" | ||
android:layout_marginTop="16dp" | ||
android:paddingHorizontal="20dp" | ||
android:paddingVertical="@dimen/space_default_medium" | ||
android:src="@drawable/ic_arrow" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_upload_activity_title" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/upload_title" | ||
android:textSize="28sp" | ||
app:layout_constraintBottom_toBottomOf="@id/iv_upload_back" | ||
app:layout_constraintStart_toEndOf="@id/iv_upload_back" | ||
app:layout_constraintTop_toTopOf="@id/iv_upload_back" /> | ||
|
||
<ImageView | ||
android:id="@+id/iv_upload_photo" | ||
android:layout_width="180dp" | ||
android:layout_height="180dp" | ||
android:layout_marginTop="@dimen/space_default_large" | ||
android:layout_width="300dp" | ||
android:layout_height="300dp" | ||
android:layout_marginTop="@dimen/space_default_medium" | ||
android:background="@drawable/rect_radius_small" | ||
android:backgroundTint="@color/white" | ||
android:scaleType="centerCrop" | ||
app:layout_constraintBottom_toTopOf="@id/tv_upload_title" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
app:layout_constraintTop_toBottomOf="@id/tv_upload_activity_title" /> | ||
|
||
<ImageView | ||
android:id="@+id/iv_upload_camera_icon" | ||
|
@@ -55,127 +78,62 @@ | |
app:layout_constraintStart_toStartOf="@id/iv_upload_photo" | ||
app:layout_constraintTop_toTopOf="@id/iv_upload_photo" /> | ||
|
||
<EditText | ||
android:id="@+id/et_upload_photo_title" | ||
android:layout_width="0dp" | ||
<TextView | ||
android:id="@+id/tv_upload_title" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginHorizontal="@dimen/space_default_large" | ||
android:layout_marginTop="@dimen/space_default_medium" | ||
android:autofillHints="no" | ||
android:ellipsize="end" | ||
android:hint="@string/upload_photo_title" | ||
android:inputType="text" | ||
android:maxLines="1" | ||
android:text="@={viewModel.name}" | ||
android:textAlignment="textStart" | ||
android:layout_marginTop="@dimen/space_default_large" | ||
android:text="@string/upload_photo_title" | ||
android:textSize="28sp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@id/iv_upload_photo" | ||
tools:text="선정릉 돌담길" /> | ||
|
||
<ImageView | ||
android:id="@+id/iv_upload_photo_coordinate" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="@dimen/space_default_medium" | ||
android:src="@drawable/ic_coordinate" | ||
app:layout_constraintEnd_toStartOf="@id/tv_upload_photo_coordinate" | ||
app:layout_constraintStart_toStartOf="@id/et_upload_photo_title" | ||
app:layout_constraintTop_toBottomOf="@id/et_upload_photo_title" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_upload_photo_coordinate" | ||
android:layout_width="0dp" | ||
android:layout_height="0dp" | ||
android:background="@drawable/rect_radius_small" | ||
android:backgroundTint="@color/white" | ||
android:fontFamily="@font/pretendard_medium" | ||
android:gravity="center" | ||
android:textSize="28sp" | ||
app:layout_constraintBottom_toBottomOf="@id/iv_upload_photo_coordinate" | ||
app:layout_constraintEnd_toEndOf="@id/et_upload_photo_title" | ||
app:layout_constraintStart_toEndOf="@id/iv_upload_photo_coordinate" | ||
app:layout_constraintTop_toTopOf="@id/iv_upload_photo_coordinate" | ||
tools:text="35.123, 127.345" /> | ||
app:layout_constraintTop_toBottomOf="@id/iv_upload_photo" /> | ||
|
||
<View | ||
android:id="@+id/v_upload_divide_line_1" | ||
android:layout_width="0dp" | ||
android:layout_height="3dp" | ||
android:layout_marginTop="@dimen/space_default_large" | ||
android:background="@color/black" | ||
app:layout_constraintEnd_toEndOf="@id/et_upload_photo_title" | ||
app:layout_constraintStart_toStartOf="@id/et_upload_photo_title" | ||
app:layout_constraintTop_toBottomOf="@id/tv_upload_photo_coordinate" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_upload_description" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="@dimen/space_default_large" | ||
android:fontFamily="@font/pretendard_bold" | ||
android:text="@string/upload_description" | ||
android:textSize="28sp" | ||
app:layout_constraintEnd_toEndOf="@id/et_upload_photo_title" | ||
app:layout_constraintStart_toStartOf="@id/et_upload_photo_title" | ||
app:layout_constraintTop_toBottomOf="@id/v_upload_divide_line_1" /> | ||
android:layout_marginHorizontal="@dimen/space_default_large" | ||
android:layout_marginTop="@dimen/space_default_medium" | ||
android:background="@color/white" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@id/tv_upload_title" /> | ||
|
||
<EditText | ||
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. 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. 반영했어요! |
||
android:id="@+id/et_upload_photo_description" | ||
android:id="@+id/et_upload_place_name" | ||
android:layout_width="0dp" | ||
android:layout_height="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="@dimen/space_default_medium" | ||
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. [P5] 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.
|
||
android:autofillHints="no" | ||
android:background="@drawable/rect_radius_small" | ||
android:backgroundTint="@color/white" | ||
android:fontFamily="@font/pretendard_medium" | ||
android:gravity="top" | ||
android:hint="@string/upload_photo_description" | ||
android:ellipsize="end" | ||
android:hint="@string/upload_photo_title_hint" | ||
android:textColorHint="@color/white" | ||
android:inputType="text" | ||
android:padding="@dimen/space_default_medium" | ||
android:text="@={viewModel.description}" | ||
app:layout_constraintBottom_toTopOf="@id/v_upload_divide_line_2" | ||
app:layout_constraintEnd_toEndOf="@id/et_upload_photo_title" | ||
app:layout_constraintStart_toStartOf="@id/et_upload_photo_title" | ||
app:layout_constraintTop_toBottomOf="@id/tv_upload_description" | ||
app:layout_constraintVertical_chainStyle="spread" /> | ||
|
||
<View | ||
android:id="@+id/v_upload_divide_line_2" | ||
android:layout_width="0dp" | ||
android:layout_height="3dp" | ||
android:layout_marginTop="@dimen/space_default_large" | ||
android:background="@color/black" | ||
app:layout_constraintBottom_toTopOf="@id/btn_upload_submit" | ||
app:layout_constraintEnd_toEndOf="@id/et_upload_photo_title" | ||
app:layout_constraintStart_toStartOf="@id/et_upload_photo_title" | ||
app:layout_constraintTop_toBottomOf="@id/et_upload_photo_description" /> | ||
android:maxLines="1" | ||
android:text="@={viewModel.name}" | ||
android:textAlignment="textEnd" | ||
android:textColor="@color/white" | ||
android:textSize="28sp" | ||
app:layout_constraintEnd_toEndOf="@id/v_upload_divide_line_1" | ||
app:layout_constraintStart_toStartOf="@id/v_upload_divide_line_1" | ||
app:layout_constraintTop_toBottomOf="@id/tv_upload_title"/> | ||
|
||
<Button | ||
<androidx.appcompat.widget.AppCompatButton | ||
android:id="@+id/btn_upload_submit" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginHorizontal="@dimen/space_default_large" | ||
android:layout_marginTop="@dimen/space_default_large" | ||
android:layout_marginBottom="@dimen/space_default_large" | ||
android:fontFamily="@font/pretendard_bold" | ||
android:background="@drawable/rect_radius_small" | ||
android:backgroundTint="@color/main_yellow" | ||
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. [P2] 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. 반영했습니다! 버튼이 게임틱하니 예쁘네요~ |
||
android:text="@string/upload_submit" | ||
android:textSize="28sp" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@id/v_upload_divide_line_2" /> | ||
|
||
<ImageView | ||
android:id="@+id/iv_upload_close" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="20dp" | ||
android:layout_marginEnd="20dp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:srcCompat="@drawable/ic_close" /> | ||
app:layout_constraintStart_toStartOf="parent" /> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
</layout> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
<item name="colorOnSecondary">@color/black</item> | ||
<!-- Status bar color. --> | ||
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item> | ||
<item name="android:textColor">@color/white</item> | ||
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. 오 좋은데요?!👍 |
||
<item name="android:fontFamily">@font/main_font</item> | ||
<!-- Customize your theme here. --> | ||
<item name="android:windowBackground">@color/main_dark_blue</item> | ||
|
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.
[P5]
여기도 좀 간격이 더 띄워지면 좋을 것 같아요!
이건 단순 제 제안(완전 갠취의 영역)이니 크롱이 원하는 걸로 하시면 됩니다!👍
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.
space_default_large
로 반영했어요!