Skip to content

아이템 뷰 바인딩 애니메이션 추가#21

Open
sabgilhun wants to merge 2 commits into
boostcampth:masterfrom
sabgilhun:PullRequest
Open

아이템 뷰 바인딩 애니메이션 추가#21
sabgilhun wants to merge 2 commits into
boostcampth:masterfrom
sabgilhun:PullRequest

Conversation

@sabgilhun

Copy link
Copy Markdown
  • 뷰홀더 재사용을 위해 캐시사이즈 변경하는 코드 삭제

    캐시 사이즈가 갱신되어 그에따라 뷰홀더를 계속 생성하는 현상을 막기 위해 삭제하였습니다.

  • BaseRecyclerAdapter에 view 바인딩 시 애니메이션 추가

    뷰홀더에 itemview를 바인딩 할때 애니메이션을 추가하여 스크롤 하여 아이템이 변경되면 애니메이션이 동작하도록 하였습니다.

pr_mission_demo

animationSet.setDuration(700); // 애니메이션 지속 시간 700ms
animationSet.addAnimation(scaleAnimation); // 스케일 애니메이션 추가
animationSet.addAnimation(alphaAnimation); // 페이드 애니메이션 추가
view.startAnimation(animationSet);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

되게 참신하고 좋은거 같습니다. 제 개인적인 느낌인지는 모르겠지만
스크롤할때 눈이 아픈거 같네요
값들의 수정이 필요할거 같아요

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants