-
Notifications
You must be signed in to change notification settings - Fork 1
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: 약속 상세 화면 기능 개발 #961
base: develop
Are you sure you want to change the base?
feat: 약속 상세 화면 기능 개발 #961
Changes from all commits
3cf91f0
945537e
c676620
d321643
69770f6
1473fb6
4cef0a6
c5481e8
aa9b6b7
6e34390
f62bff8
8b09e38
e85c417
7b774a5
3f261ce
aaa54fb
10e13d5
703f5d9
ebbbce5
e7d3b50
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
package com.mulberry.ody.presentation.common | ||
|
||
import android.content.Context | ||
import android.graphics.Point | ||
import android.view.View | ||
|
||
fun Int.toPixel(context: Context): Int { | ||
val density = context.resources.displayMetrics.density | ||
return (this * density).toInt() | ||
} | ||
|
||
fun View.getPointOnScreen(): Point { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. apply 쓴 이유가 궁금해요! Point(location[0], location[1]) 이렇게 사용하면 안되나요? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 참고한 코드에서 저렇게 작성했길래 당연히 Point의 생성자로 x, y를 받을 수 없다고 생각했어요 (ㅜㅜ) |
||
val location = IntArray(2) | ||
this.getLocationOnScreen(location) | ||
return Point(location[0], location[1]) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.mulberry.ody.presentation.room | ||
|
||
sealed interface MeetingRoomNavigateAction { | ||
data object NavigateToEtaDashboard : MeetingRoomNavigateAction | ||
|
||
data object NavigateToNotificationLog : MeetingRoomNavigateAction | ||
} |
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.
DefaultMeetingRepository에서 임시 데이터 넣어두었어요 api merge되면 위 코드 삭제하고 아래 주석 추가할게요!