18

I'm a newcomer to developing for Android, and the concept of developing across multiple different platforms with different supported features on each is really making my head hurt.

For example, if I go into an xml file and set

   android:elevation="10dp"

and it gives me the message "Attribute elevation is only used in API level 21 and higher(current min is 14), and says it'll simply ignore the attribute. Is this saying it'll completely ignore it even if I'm using a Lollipop device, or that it'll only ignore it if i'm not on a Lollipop device?

Mikey Chen
  • 2,370
  • 1
  • 19
  • 31

1 Answers1

28

It will only ignore it if you're not on a Lollipop device. The older versions of Android will simply ignore any XML attributes that they do not understand.

Bidhan
  • 10,607
  • 3
  • 39
  • 50