Sitelet https://github.com/hellsam/DoughnutDemo_Android/issues/2
Skip to content

getInterpolation返回的float可能大于1 #2

Description

@shisishishisi

使用BounceInterpolator的话,getInterpolation返回的float最大值大于1,所以getCurrentColor的判断条件应该改为f.length == 1 || percent >= 1

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions