3
I added the support library for Apis below 21 and am testing the property elevation
in my components.
In the layout view, when I click on the design tab, I can see the elevation but when I run to my smartphone nothing changes, everything continues without any elevation.
Before adding support I couldn’t even use the property, so I don’t understand how now I can use and it doesn’t work.
I added the lines in dependencies
, in Gradle:
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.android.support:design:22.2.1'
So there’s no way I can have that effect of Elevation on Apis below 21? Because I can notice the shadow on some apps I have installed on the smartphone. They used some other feature?
– Éowyn
Yes, possibly by resorting to 9-Patch drawables, see this
– ramaral
Thank you! Just one more question: using these effects I don’t need the Material Elevation right?
– Éowyn
Yes, according to there say they run from API9 onwards
– ramaral