@TonyEasy // vertical animation.
// water level increases from 0 to center of WaveView
ObjectAnimator waterLevelAnim = ObjectAnimator.ofFloat(
mWaveView, "waterLevelRatio", 0f, 0.5f);
waterLevelAnim.setDuration(10000);
waterLevelAnim.setInterpolator(new DecelerateInterpolator());
animators.add(waterLevelAnim);
Android实现波浪效果 - WaveView效果图 先上效果图 实现 WaveView的属性 Wate Level(水位) - 波浪静止时水面距离底部的高度Amplitude(振幅) - 波浪垂直振动时偏离水面的最大距...