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

[feat/lock_UI_design]: LockScreen 변경된 UI로 수정 #169

Merged
merged 3 commits into from
Mar 30, 2024

Conversation

kangyuri1114
Copy link
Member

개요

작업 사항

  • LockScreen 변경된 UI로 수정

변경 사항(optional)

  • 불필요하다고 생각된 spacer를 모두 제거하고, 컴포넌트 간 padding으로 교체했습니다
  • 디자인 시스템이 적용 안 된 곳 모두 디자인 시스템 활용하도록 수정했습니다
  • 기존에 자물쇠 이미지가 아닌 앱 이미지로 되어 있던 것 변경된 이미지로 수정했습니다 -> 앱 이미지 변수 삭제함
  • 권한 허용 리마인드 텍스트 추가 되었습니다
  • 자잘한 디자인 수정 모두 반영했습니다
  • 가로모드 불필요한 화면 같아서 막았습니다

스크린샷(optional)

변경된 디자인
image

@kangyuri1114 kangyuri1114 added 💻feat 새로운 기능 추가 🐰유리 유리 작업 labels Mar 15, 2024
@kangyuri1114 kangyuri1114 self-assigned this Mar 15, 2024
@kangyuri1114 kangyuri1114 requested a review from a team as a code owner March 15, 2024 15:46
@@ -6,7 +6,8 @@
<activity
android:name=".LockActivity"
android:exported="false"
android:theme="@style/Base.Theme.HMH" />
android:theme="@style/Base.Theme.HMH"
android:screenOrientation="portrait" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

이렇게 되면 모든 화면이 가로모드 차단되는 건가요??

Copy link
Member Author

Choose a reason for hiding this comment

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

가로모드 차단이라기 보다는 세로모드로만 설정한겁니다! 그리고 모든 화면은 아니고 해당 액티비티 안에 속성을 넣은거라 해당 액티비티 뷰만 세로모드가 됩니다~!

Copy link
Member Author

Choose a reason for hiding this comment

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

그래서 어떤 화면들을 세로모드만 가져갈지에 대해서 논의가 필요할 것 같다고 한 거예요

Comment on lines +124 to +125
style = TextStyle(textAlign = TextAlign.Center).merge(HmhTypography.bodyMedium),
modifier = Modifier.padding(vertical = 10.dp),
Copy link
Collaborator

Choose a reason for hiding this comment

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

오 컴포즈는 이런 식으로 하는군요

Comment on lines -178 to -185

@Preview(showBackground = true)
@Composable
fun GreetingPreview() {
HMHAndroidTheme {
LockScreen("HHM")
}
}
Copy link
Collaborator

@jihyun0v0 jihyun0v0 Mar 20, 2024

Choose a reason for hiding this comment

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

이 부분은 왜 지운 건가요??

Copy link
Member Author

Choose a reason for hiding this comment

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

이건 Preview라고 컴포즈에서 디자인한 화면을 빌드 전에 미리 보는 코드인데 저는 미리 볼 필요없어서 지웠어요~
프리뷰 빌드 넘 오래 걸려서..

@@ -85,7 +87,6 @@ class LockActivity : ComponentActivity() {
}
}


@Composable
Copy link
Collaborator

Choose a reason for hiding this comment

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

컴포즈에서는 ui선언 함수와 로직 선언 함수를 한 파일에 작성하나요?? 아니라면 파일을 분리해서 책임을 분리하는 게 깔끔할 것 같은데 (컴포즈가 원래 그런거라면 어쩔 수 없고욤)

Copy link
Member Author

Choose a reason for hiding this comment

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

뷰모델과 관련없는 로직이라면
ui선언 함수와 로직 관련 코드를 한 파일에 작성하는 것이 맞는 걸로 알고 있어요!
activity+xml 느낌으루다가..? 근데 저도 정확히 맞는지는 모르겠네용
@KwakEuiJin 답변부타케

@@ -3,5 +3,6 @@
<string name="use_it_anymore">이제 %s을(를)\n"사용할 수 없어요"</string>
<string name="close">닫기</string>
<string name="do_unlock">잠금 해제하기</string>
<string name="app_kill_fail">앱을 종료하는데 실패했습니다.</string>
<string name="app_kill_fail">앱을 종료하는 데 실패했습니다.</string>
Copy link
Collaborator

Choose a reason for hiding this comment

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

인간 맞춤법 검사기 강유리 짱짱

@jihyun0v0 jihyun0v0 merged commit 2a6d60b into develop Mar 30, 2024
1 check passed
@jihyun0v0 jihyun0v0 deleted the feat/lock_ui_design branch March 30, 2024 05:33
kez-lab pushed a commit that referenced this pull request Nov 20, 2024
[feat/lock_UI_design]: LockScreen 변경된 UI로 수정
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐰유리 유리 작업 💻feat 새로운 기능 추가
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[feat]: LockScreen 변경된 UI로 수정
2 participants