如何设置Ripple效果

Aja*_*van 0 android android-layout ripple

我正在开发一个具有minSdkVersion = 16的应用程序,我需要在Lollipop及以上版本中使用涟漪效果,并在较低版本上使用其他一些效果.
有没有办法用XML做到这一点?

Mil*_*iya 5

无需为特定版本设计任何其他布局,只需使用此库进行涟漪效应

https://github.com/traex/RippleEffect

编译此库的行

dependencies {
compile 'com.github.traex.rippleeffect:library:1.3'
Run Code Online (Sandbox Code Playgroud)

}