Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
부나 하이요~
필수 요구사항 모두 만족했고 선택 요구사항은 태블릿 세로버전을 ConstraintLayout으로만 구현하는 것만 만족했습니다.
다크모드
values-night를 만들어 다크모드의 theme를 재정의해줬습니다!
태블릿 세로버전 - ConstraintLayout으로만 구현하기
사실 미션의 의도가 이게 맞는지 모르겠지만!
GuideLine을 이용해서 구현했어요. layout_constraintGuide_percent이라는 속성으로 화면의 몇 퍼센트에 가이드라인을 둘 수 있습니다!
Default 경우에는 0.0, 1.0(0%, 100%)에 가이드라인이 있고, 태블릿의 세로 버전의 경우에는 0.2, 0.8에 가이드라인이 있도록 만들었어요.
이 상수는 dimens에 선언되어 있습니다. Default dimens의 경우 0.0, 1.0이지만 태블릿을 의미하는 sw600dp의 dimens는 0.2, 0.8로 선언되어 있어요~!
따라서 각 화면에 맞는 dimens를 꺼내씀으로써 태블릿의 세로 버전에서는 좁게 보여지게 됩니다!
스크린샷