What does "add-resource" do in android xml file?
I found that the package / apps / UnifiedEmail has the following statement in the Android source code:
<add-resource name="RecipientEditTextViewStyle" type="style" />
What does this "add-resource" element mean? Many thanks!
Source code: https://github.com/CyanogenMod/android_packages_apps_UnifiedEmail/blob/cm-11.0/res/values/attrs.xml
+3
source to share
1 answer
<resources>
<string name="app1_name">MyAppName</string>
</resources>
is the same as
<resources>
<add-resource type="string" name="app1_name">MyAppName</add-resource>
</resources>
So
<add-resource name="RecipientEditTextViewStyle" type="style" />
is the same as
<style name = "RecipientEditTextViewStyle"/>
+3
source to share