Skip to content

Commit

Permalink
feat(PollOptions): adjust animation curve
Browse files Browse the repository at this point in the history
  • Loading branch information
FineFindus committed May 12, 2024
1 parent 54202f3 commit ad9b5f0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ public void showResults(boolean shown) {
int targetLevel=shown ? Math.round(10000f*item.votesFraction) : 0;
ObjectAnimator animator=ObjectAnimator.ofInt(bg, "level", startLevel, targetLevel);
animator.setDuration(ANIMATION_DURATION);
animator.setInterpolator(new DecelerateInterpolator());
button.setBackground(bg);
if(shown){
itemView.setSelected(item.poll.ownVotes!=null && item.poll.ownVotes.contains(item.optionIndex));
Expand Down

0 comments on commit ad9b5f0

Please sign in to comment.