-
Notifications
You must be signed in to change notification settings - Fork 3
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
[1주차] 제이콥/임익주 #10
[1주차] 제이콥/임익주 #10
Conversation
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.
수정사항 반영해주세요~ 수고하셨습니다
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.
클릭하면 화면 이동하는것도 구현해주세요~
<TextView | ||
android:id="@+id/textView7" | ||
android:layout_width="94dp" | ||
android:layout_height="17dp" |
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.
text는 width랑 height를 wrap으로 통일하는것이 좋습니다
android:text="더없이 행복한 하루였어요" | ||
android:textAlignment="center" | ||
android:textSize="12sp" | ||
android:textStyle="bold" |
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.
textSize와 textStyle, font가 동일한 경우 style로 저장해서 쓰는것이 효율적인데 이 부분은 나중에 스터디때 알려드리겠습니다.
app:layout_constraintTop_toTopOf="parent"> | ||
|
||
<TextView | ||
android:id="@+id/textView2" |
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.
id 이름을 전체적으로 규칙을 지켜서 정하면 다른 개발자가 코드 읽기 수월합니다.
android:layout_height="51dp" | ||
android:layout_marginTop="25dp" | ||
android:textAlignment="center" | ||
app:layout_constraintEnd_toEndOf="@+id/textView4" |
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.
@+id는 id 이름을 지정할때 주로 쓰고
toptotop처럼 위치를 지정할 때는 @id를 주로 사용합니다.
app:layout_constraintEnd_toEndOf="@+id/textView5" | ||
app:layout_constraintStart_toStartOf="@+id/textView5" | ||
app:layout_constraintTop_toBottomOf="@+id/textView5" | ||
app:srcCompat="@drawable/group_462_2" /> |
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.
srcCompat의 경우 jpg파일을 사용할 수 없기때문에 src를 대부분 사용합니다.
android:layout_height="wrap_content" | ||
android:layout_marginTop="5dp" | ||
android:text="감정우표를 선택해주세요" | ||
android:textAlignment="center" |
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.
wrap으로 width와 height을 지정하고 start와 end를 설정했다면 textAlignment는 불필요한 코드입니다.
closes #9