Skip to content
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

[Week/#1] 1주차 워크북 미션 #2

Merged
merged 1 commit into from
Sep 28, 2024
Merged

[Week/#1] 1주차 워크북 미션 #2

merged 1 commit into from
Sep 28, 2024

Conversation

znayeonzn
Copy link
Contributor

📌 관련 이슈번호

#1

  • Closes #단일 화면 구성

✅ Key Changes

이번 PR에서 작업한 내용을 간략히 설명해주세요

  1. 작업 내용

📢 To Reviewers (Part Leader)

ConstraintLayout, LinearLayout을 이용하여 단일 화면을 구성했습니다.
이미지는 SVG Vector asset으로 가져왔습니다.

📸 스크린샷

스크린샷 2024-09-28 213705

🔗 참고 자료

@znayeonzn znayeonzn merged commit 2ae267b into main Sep 28, 2024
@@ -7,13 +7,142 @@
android:layout_height="match_parent"
tools:context=".MainActivity">

<ImageView
android:id="@+id/backbtn"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id 네이밍 시 btn_back 형식으로 snake case 사용하면 좋을 것 같아요
textview의 경우 tv_menu_title 이런 형태를 주로 사용합니다!

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
android:text="오늘 하루는 어땠나요?"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

textview의 text 속성 사용 시
res-values-strings.xml에서 string을 지정하여 사용하면 좋을 것 같아요!

android:orientation="vertical"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/text3"
app:layout_constraintEnd_toEndOf="parent">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LinearLayout에 layout_constraintBottom_toBottomOf="parent"
bottom constraint도 추가하면 화면 크기에 따라 이미지가 잘리지 않을 것 같아요!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants