-
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
[UI/YAF-000] 온보딩 Lottie Animation을 적용합니다. #41
Conversation
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.
[p4]
온보딩 외에도 사용할 일이 있어서 core:ui 의 component에 배도 좋을 거 같아요
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.
[p5]
LottieAnimation의 크기를 직접적으로 fillMaxWidth()로 조절하는 방법이 없는 거 같긴 한데... 없다면 무시하셔도 됩니다.
scaleX = when (contentScale) { | ||
ContentScale.Fit -> scaleXAdjustment | ||
ContentScale.FillWidth -> 1.2f * scaleXAdjustment | ||
ContentScale.FillHeight -> 1.5f * scaleXAdjustment | ||
else -> scaleXAdjustment | ||
}, | ||
scaleY = when (contentScale) { | ||
ContentScale.Fit -> scaleYAdjustment | ||
ContentScale.FillWidth -> 1.2f * scaleYAdjustment | ||
ContentScale.FillHeight -> 1.5f * scaleYAdjustment | ||
else -> scaleYAdjustment | ||
}, |
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.
[p4]
scaleX = when (contentScale) { | |
ContentScale.Fit -> scaleXAdjustment | |
ContentScale.FillWidth -> 1.2f * scaleXAdjustment | |
ContentScale.FillHeight -> 1.5f * scaleXAdjustment | |
else -> scaleXAdjustment | |
}, | |
scaleY = when (contentScale) { | |
ContentScale.Fit -> scaleYAdjustment | |
ContentScale.FillWidth -> 1.2f * scaleYAdjustment | |
ContentScale.FillHeight -> 1.5f * scaleYAdjustment | |
else -> scaleYAdjustment | |
}, | |
scaleX = getScaleFromContentScale(contentScale) * scaleXAdjustment, | |
scaleY = getScaleFromContentScale(contentScale) * scaleYAdjustment, |
scale 비율을 계산하는 헬퍼 함수를 작성하는 것도 좋을 거 같아요
) | ||
} | ||
} | ||
} |
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.
[p4]
} | |
} | |
private fun getScaleFromContentScale(contentScale: ContentScale): Float { | |
return when (contentScale) { | |
ContentScale.Fit -> 1f | |
ContentScale.FillWidth -> 1.2f | |
ContentScale.FillHeight -> 1.5f | |
else -> 1f | |
} | |
} |
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.
수고하셨습니다
Related issue 🛠
closed #39
어떤 변경사항이 있었나요?
CheckPoint ✅
PR이 다음 요구 사항을 충족하는지 확인하세요.
Work Description ✏️
testmama.mp4
test1231231.mp4
Uncompleted Tasks 😅
To Reviewers 📢