我正在开发一款具有minSdkVersion = 16的应用程序,我需要在Lollipop及以上版本中使用涟漪效果以及在较低版本上使用其他一些效果。
有没有办法使用XML?
答案 0 :(得分:5)
无需为特定版本设计任何其他布局,只需使用此库进行涟漪效应
https://github.com/traex/RippleEffect
编译此库的行
dependencies {
compile 'com.github.traex.rippleeffect:library:1.3'
}
答案 1 :(得分:1)
您可以在棒棒糖前设备上使用Material Design。 你需要在你的gradle中添加:
编译'com.android.support:appcompat-v7:23.2.1'
阅读Google博客link
上的参考资料答案 2 :(得分:1)