Using attributes from API level beyond minSdkVersion

前端 未结 3 1796
心在旅途
心在旅途 2021-02-05 01:18

I am new to Android development and am wondering what happens if you use attributes on XML tags from an API level greater than your minSdkVersion.

For example having:

3条回答
  •  迷失自我
    2021-02-05 02:06

    For XML attributes, its safe to use attributes from newer APIs (they will simply be ignored as the XML parser won't even look for them on older versions).

提交回复
热议问题