<meta-data>subelements. The values from all of them are collected in a single
Bundleobject and made available to the component as the
Ordinary values are specified through the
attribute. However, to assign a resource ID as the value, use the
resource attribute instead. For example,
the following code assigns whatever value is stored in the
resource to the "
<meta-data android:name="zoo" android:value="@string/kangaroo" />
On the other hand, using the
resource attribute would assign "
the numeric ID of the resource, not the value stored in the resource:
<meta-data android:name="zoo" android:resource="@string/kangaroo" />
It is highly recommended that you avoid supplying related data as
<meta-data> entries. Instead, if you
have complex data to associate with a component, store it as a resource and
resource attribute to inform the component of its ID.
|String value, using double backslashes (
|Integer value, such as "
|Boolean value, either "
|Color value, in the form "
|Float value, such as "