WaveView icon indicating copy to clipboard operation
WaveView copied to clipboard

How to change water level?

Open stovberpv opened this issue 8 years ago • 2 comments

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!

stovberpv avatar Jun 13 '17 10:06 stovberpv

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.

lcupup avatar Jun 30 '17 06:06 lcupup

怎么只要波浪线啊 大神

bozheng946448185 avatar Aug 11 '17 06:08 bozheng946448185