Skip to content

Conversation

@pingu244
Copy link

써니 안녕하세요☀️
시간이 언제 이렇게 갔는지 벌써 마지막 미션이네요 허허.. 뭔가 싱숭생숭합니다😂
이번 미션은 대체 레이아웃으로 구현하다가 매번 레이아웃을 만들어주어 관리해야한다는 단점때문에 dimen 활용방법으로 수정했습니다!
마지막 리뷰도 잘 부탁드릴게요!👍

태블릿 세로

태블릿 가로

다크모드

Copy link

@inseonyun inseonyun left a 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"

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에서 재정의 되어 색이 정해진다.

Copy link
Author

Choose a reason for hiding this comment

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

와 몰랐던 사실이네요! 좋은 정보 감사합니다👍

Comment on lines +1 to +8
<?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>

Choose a reason for hiding this comment

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

각각의 화면 레이아웃이 아닌 dimens.xml 한 군데에 모든 정보를 정의할 수 있는 만큼 추후 나중에 만들 앱이나 프로젝트에서 네이밍을 잘 고려해서 작성해주는게 좋을 거 같아요!

물론 지금 네이밍이 이상하거나 문제된다는 것은 아닙니다 !

@inseonyun inseonyun merged commit ff6dbd9 into woowacourse:pingu244 Oct 16, 2023
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