Using Custom Android Resources
The Android platform build has been extended to take custom resources into account, as this is a common source for native code injections. During the Android build, resources will be copied into the your_project/res directory and thus must follow Android's resources guidelines. To include custom Android resources (e.g., specific drawables, colors.xml), you must use the property android.project.build.resources.drawables in targets/_defaults_.xml, e.g:
<property name="android.project.build.resources.drawables"
value="native/graphics/android" />
Resources will be copied into the Android project using the following order:
Copy default files provided by
Mobile Designer.
Copy (and override existing) resources generated by
Mobile Development (i.e., when using styles, themes).
Copy (and override existing) resources from
${android.project.build.resources.drawables}.
Related Topics