gelitenight / WaveView

waveview for android
Apache License 2.0
1.59k stars 325 forks source link

How to change water level? #18

Open stovberpv opened 7 years ago

stovberpv commented 7 years ago

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!

lcupup commented 7 years ago

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.

bozheng946448185 commented 7 years ago

怎么只要波浪线啊 大神