GLRippleView

Custom GLSurfaceView for Android to show image with ripple effect using OpenGL.

Simple Cross-fade
ripple fade

Getting Started

dependencies {
  compile 'com.github.r21nomi:glrippleview:1.0.0'
}

Usage

Simple

<r21nomi.com.glrippleview.GLRippleView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:backgroundImage="@drawable/bg1" />
glRippleView.setRippleOffset(0.01f)

Cross-fade

glRippleView.run {
    addBackgroundImages(listOf(
            BitmapFactory.decodeResource(resources, R.drawable.bg2),
            BitmapFactory.decodeResource(resources, R.drawable.bg3)
    ))
    setRippleOffset(0.01f)
    setFadeInterval(5000)
    startCrossFadeAnimation()
}

GitHub