Merge layout files for multiple version numbers

I have different layout files for different versions of Android, for example layout-v13, but I noticed that the files for the same versions (API 11-16) are the same. Is there a way to group them as something like layout-v11,12,13,14,15,16? Thank you for your time!

+5
source share
2 answers

layout-v11will be used by all devices running Android 3.0 and higher. You should only split folders (i.e. layout-v11, layout-v12etc.) if devices using a specific version require a different layout.

+3
source

, , , , API , . .

- API, , :

res/layout/layout.xml       (Default)
res/layout-v4/layout.xml    (Android 1.6 and higher)
res/layout-v11/layout.xml   (Android 3.0 and higher)

Android enter image description here

layout-v11 Android 3.0 Honeycomb

+4

All Articles