Skip to content
This repository was archived by the owner on Feb 9, 2023. It is now read-only.

Conversation

josh-yun
Copy link

일정 시간이 지났을 때 아이콘이 사라졌으면 좋겠다는 의견이 있어서 옵션으로 켰다 껐다 할 수 있도록 구현을 했습니다.

@josh-yun josh-yun requested a review from ybbarng April 11, 2019 06:42
if (!(state instanceof HoverViewStatePreviewed) && state instanceof HoverViewStateCollapsed) {
mHoverView.setAlpha(0.4f);
if (mHoverView.shouldKeepVisible()) {
mHoverView.setAlpha(0.4f);
Copy link

Choose a reason for hiding this comment

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

0.4f를 클래스 앞쪽이나 어딘가에 상수로 빼두면 추후에 관리하기 용이할 것 같습니다.

기획적인 측면이어서 그냥 아이디어입니다만 바로 alpha 값을 변경하는 것보다는 서서히 변하는 게 더 자연스럽게 보일 수 있을 것 같기도 합니다.

Copy link
Author

Choose a reason for hiding this comment

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

상수로 빼두는것은 좋을것 같네요! 수정해둘게요.

Alpha 값을 변경하는 부분은 이야기를 조금 해봐야할 것 같네요 ㅎㅎ

OnExitListener mOnExitListener;
private final Set<OnStateChangeListener> mOnStateChangeListeners = new CopyOnWriteArraySet<>();
private final Set<OnInteractionListener> mOnInteractionListeners = new CopyOnWriteArraySet<>();
private boolean mKeepVisible;
Copy link

Choose a reason for hiding this comment

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

기본값은 false인가요?

Copy link
Author

Choose a reason for hiding this comment

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

네 기본값은 false 입니다.

Copy link

@ybbarng ybbarng left a comment

Choose a reason for hiding this comment

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

LGTM입니다.

@josh-yun josh-yun merged commit 9c3f5f0 into master Apr 11, 2019
@delete-merged-branch delete-merged-branch bot deleted the feature/keep_visible branch April 11, 2019 06:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants