Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 961 Bytes

README.md

File metadata and controls

41 lines (30 loc) · 961 Bytes

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:小嵩的博客