Can the Android drawable directory contain subdirectories?

后端 未结 21 976
醉梦人生
醉梦人生 2020-11-22 04:13

In the Android SDK documentation, all of the examples used with the @drawable/my_image xml syntax directly address images that are stored in the res/drawable directory in my

21条回答
  •  花落未央
    2020-11-22 04:40

    One way to partially get around the problem is to use the API Level suffix. I use res/layout-v1, res/layout-v2 etc to hold multiple sub projects in the same apk. This mechanism can be used for all resource types.

    Obviously, this can only be used if you are targeting API levels above the res/layout-v? you are using.

    Also, watch out for the bug in Android 1.5 and 1.6. See Andoroid documentation about the API Level suffix.

提交回复
热议问题