Skip to content

xiaosong520/DoubleWave

Repository files navigation

DoubleWave

this is a custom view for android

GIF

How to Use

Step one:

//module project
        dependencies {
            compile 'com.xiaosong520:doublewaveview:1.0.2'
    }

Step two:

<com.doublewave.DoubleWaveView
        android:id="@+id/waveView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        DoubleWaveView:speedOne="8"
        DoubleWaveView:speedTwo="6"
        DoubleWaveView:peakValue="20dp"
        DoubleWaveView:waveHeight="200dp"
        DoubleWaveView:waveColor="@color/colorBlue"/>

Step three:

 waveView = (DoubleWaveView) findViewById(R.id.waveView);
 waveView.setAnim(false);//if you do not need to set animation effects
 //waveView.setAnim(true);// Restart anim

CSDN Blog:小嵩的博客

About

(Android 类似于淘宝的双波纹控件)a custom view for android

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages