Skip to content

How to change water level? #18

Open

Description

@stovberpv

Water level always set to 50% of view. How i can set any other level to using it like a progress bar?

Method setWaterLevelRatio dont do anything.

Thanks in advance!

Activity

  1. lcupup commented on Jun 30, 2017

    @lcupup

    hi~are you still following this question?
    Solve the problem you can find the method in class WaveHelper
    (
    // vertical animation.
    // water level increases from 0 to center of WaveView
    // ObjectAnimator waterLevelAnim = ObjectAnimator.ofFloat(
    // mWaveView, "waterLevelRatio", 0f, 0.8f);
    // waterLevelAnim.setDuration(10000);
    // waterLevelAnim.setInterpolator(new DecelerateInterpolator());
    // animators.add(waterLevelAnim);

    )
    yeah,Notes it and then Method setWaterLevelRatio can have do anything.
    i am chinese ,English not better,
    hope can help you.

  2. bozheng946448185 commented on Aug 11, 2017

    @bozheng946448185

    怎么只要波浪线啊 大神

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