Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clarification regarding Android "Attribute elevation is only used in API level 21 and higher"

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?

like image 922
hendersawn Avatar asked Jun 06 '15 16:06

hendersawn


1 Answers

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.

like image 91
Bidhan Avatar answered Oct 17 '22 21:10

Bidhan