Reputation: 2989
I am working on an app which has a minSdkVersion = 16, and I need to use the ripple effect in Lollipop and above and some other effect on lower version.
Is there any way to do this using XML?
Upvotes: 0
Views: 284
Reputation: 2559
No need to design any other layout just for specific version just Use this library for ripple effect
https://github.com/traex/RippleEffect
compile line for this library
dependencies {
compile 'com.github.traex.rippleeffect:library:1.3'
}
Upvotes: 5
Reputation: 1879
You can create different XML files for pre-Lollipop and Lollipop or higher
Upvotes: 1