diff --git a/README.md b/README.md index 266deba..7b0061f 100644 --- a/README.md +++ b/README.md @@ -171,6 +171,16 @@ waveView.setPlaybackSpeed("1.5"); waveView.setWaveProperties(color1, wave1Width, color2, wave2Width, waveSpeed); ``` +> To set wave1 alpha +```java +waveView.setWave1Alpha(alpha1); +``` + +> To set wave2 alpha +```java +waveView.setWave2Alpha(alpha2); +``` + > To control the visibility of the second wave: ```java // Hide the second wave @@ -249,16 +259,6 @@ if (waveView != null) { } ``` -> To set wave1 alpha -```java -waveView.setWave1Alpha(alpha1); -``` - -> To set wave2 alpha -```java -waveView.setWave2Alpha(alpha2); -``` - ### Permissions > Add the following permissions to your `AndroidManifest.xml`: