4

I've noticed that elevation is part of the v7 support library.

When applying it to buttons through styles.xml, I don't see any elevation being applied.

Is it supposed to work on pre-L devices? If not, why is it present in the support library ?

nios
  • 1,153
  • 1
  • 9
  • 20
  • I'd love to have a definite answer too but what I've found out is that elevation is only available for Cardview. – Roberto Betancourt Nov 19 '14 at 13:58
  • 1
    possible duplicate of [Android AppCompat 21 Elevation](http://stackoverflow.com/questions/26728570/android-appcompat-21-elevation) – Derk-Jan Dec 24 '14 at 14:29

1 Answers1

3

The elevation works only in Android 5.0. On earlier versions, shadows are normally provided as PNG assets.

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
  • 1
    Then what's the point of having it available on the support library? Will it be available in the future ? – nios Nov 20 '14 at 14:00