Awesome
WaveDisPlayView
WaveDisPlayView is an Android list view that allows you to preview the next view or the previous view by dragging left and right.
Screenshot
<img src="/screenshot/screenshot.gif" width="360" height="640" alt="screenshot"/>DownLoad
Installation
Add it to your root build.gradle with:
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
and app build.gradle:
dependencies {
implementation 'com.github.MlxChange:WaveDisPlay:0.1.1'
}
Usage
<com.mlx.widget.WaveDisplayView
android:layout_width="match_parent"
android:layout_height="match_parent">
</com.mlx.widget.WaveDisplayView>
waveDisplayView = findViewById(R.id.wave)
waveAdapter = MyAdapter(this, mData)
waveDisplayView.setAdapter(waveAdapter)
Attribute
dragColor //default white
dragWidth //drag button width
dragLocation //the starting position of the drag, the default is half of the height