-
Notifications
You must be signed in to change notification settings - Fork 45
[핑구] 뷰 챌린지 미션 3단계 제출합니다. #64
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
Conversation
inseonyun
left a comment
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.
고생 많으셨습니다 따로 남겨드릴 피드백은 없는 거 같아요 !
의견을 나누고 싶은 내용에 대해서 코멘트 남겨드렸습니다!
고생 많으셨습니다 핑구! 남은 최종 데모데이, 글쓰기, 등등 잘 준비하시길 바랄게요!
파이팅~~~
| android:viewportWidth="24" | ||
| android:viewportHeight="24"> | ||
| <path | ||
| android:fillColor="@color/white" |
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.
매번 레이아웃을 만들어주어 관리해야한다는 단점때문에 dimen 활용방법으로 수정했습니다!
각각의 아이콘 drawable의 night 버전 xml이 생기는 건 괜찮으신가요~?
저는 매번 레이아웃을 만들어 관리하는 방법도 괜찮다고 생각하고 dimen을 활용한 방법도 괜찮다고 생각합니다 !
이러한 벡터 xml fillColor도 테마에 맞게 변경되는 Color 값을 넣어주면 그에 맞게 변경됩니다
예시로 다음과 같습니다.
Default ColorOnPrimary는 Theme에 DayNight일 때는 화이트, Night 일 때는 Black입니다.
android:fillColor="?attr/colorOnPrimary"attr에 정의된 colorOnPrimary 값을 가져온다. 이 값은 Theme.xml에서 재정의 되어 색이 정해진다.
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.
와 몰랐던 사실이네요! 좋은 정보 감사합니다👍
| <?xml version="1.0" encoding="utf-8"?> | ||
| <resources> | ||
| <dimen name="item_default">80dp</dimen> | ||
| <dimen name="menu_height">100dp</dimen> | ||
| <dimen name="menu_padding_default">100dp</dimen> | ||
| <dimen name="erase_all_icon_margin">16dp</dimen> | ||
|
|
||
| </resources> |
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.
각각의 화면 레이아웃이 아닌 dimens.xml 한 군데에 모든 정보를 정의할 수 있는 만큼 추후 나중에 만들 앱이나 프로젝트에서 네이밍을 잘 고려해서 작성해주는게 좋을 거 같아요!
물론 지금 네이밍이 이상하거나 문제된다는 것은 아닙니다 !
써니 안녕하세요☀️
시간이 언제 이렇게 갔는지 벌써 마지막 미션이네요 허허.. 뭔가 싱숭생숭합니다😂
이번 미션은 대체 레이아웃으로 구현하다가 매번 레이아웃을 만들어주어 관리해야한다는 단점때문에 dimen 활용방법으로 수정했습니다!
마지막 리뷰도 잘 부탁드릴게요!👍
태블릿 세로
태블릿 가로
다크모드