Home | History | Annotate | Download | only in res

Lines Matching defs:Resources

71  * Class for accessing an application's resources.  This sits on top of the
76 * application. You can use this class to access your application's resources. You can generally
77 * acquire the {@link android.content.res.Resources} instance associated with your application
80 * <p>The Android SDK tools compile your application's resources into the application binary
84 * code to access the resources.</p>
86 * <p>Using application resources makes it easy to update various characteristics of your
88 * resources&mdash;enables you to optimize your application for a variety of device configurations
92 * <p>For more information about using resources, see the documentation about <a
93 * href="{@docRoot}guide/topics/resources/index.html">Application Resources</a>.</p>
95 public class Resources {
96 static final String TAG = "Resources";
101 static Resources mSystem = null;
105 // Pool of TypedArrays targeted to this Resources object.
120 * WeakReferences to Themes that were constructed from this Resources object.
167 * Return a global shared Resources object that provides access to only
168 * system resources (no application resources), and is not configured for
172 public static Resources getSystem() {
174 Resources ret = mSystem;
176 ret = new Resources();
201 * Create a new Resources object on top of an existing set of assets in an
210 public Resources(AssetManager assets, DisplayMetrics metrics, Configuration config) {
216 * Creates a new Resources object with CompatibilityInfo.
223 public Resources(@Nullable ClassLoader classLoader) {
228 * Only for creating the System resources.
230 private Resources() {
244 * Set the underlying implementation (containing all the resources and caches)
341 * <a href="{@docRoot}guide/topics/resources/string-resource.html#Plurals">String Resources</a>
412 * <a href="{@docRoot}guide/topics/resources/string-resource.html#Plurals">String Resources</a>
445 * <a href="{@docRoot}guide/topics/resources/string-resource.html#Plurals">String Resources</a>
575 * with the resources.
741 + "attributes! Consider using Resources.getDrawable(int, Theme) or "
958 + "Resources.getColorStateList(int, Theme) or "
1165 * with resources whose value is the name of an asset files -- that is, it can be
1166 resources; it will fail on string
1167 * and color resources.
1222 * with resources whose value is the name of an asset file -- that is, it can be
1223 * used to open drawable, sound, and raw resources; it will fail on string
1224 * and color resources.
1240 * with resources whose value is the name of an asset files -- that is, it can be
1241 * used to open drawable, sound, and raw resources; it will fail on string
1242 * and color resources.
1244 * <p>This function only works for resources that are stored in the package
1310 * IDs, and getString(int) for information on how string resources are
1314 * efficient to retrieve resources by identifier than by name.
1360 * resources, its values placed into the Theme object.
1381 * Resources object, they will be identical after this function
1382 * returns. If they are from different Resources, only the resources
1406 * @see Resources#obtainAttributes
1430 * @see Resources#obtainAttributes
1483 * @see Resources#obtainAttributes
1495 * {@link Resources#getValue}.
1514 * {@link Resources#getValue}.
1543 * Returns the resources to which this theme belongs.
1545 * @return Resources to which this theme belongs.
1547 public Resources getResources() {
1548 return Resources.this;
1563 return Resources.this.getDrawable(id, this);
1722 * Generate a new Theme object for this set of Resources. It initially
1736 * performing styling of them using a theme and/or style resources.
1753 // contained in the resources and such).
1779 * Update the system resources configuration if they have previously
1788 //Log.i(TAG, "Updated system resources " + mSystem
1852 * efficient to retrieve resources by identifier than by name.
2041 * Retrieve underlying AssetManager storage for these resources.
2048 * Call this to remove all cached loaded layout resources from the
2049 * Resources object. Only intended for use with performance testing
2057 * Start preloading of resource data using this Resources object. Only
2058 * for use by the zygote process for loading common system resources.
2066 * Called by zygote when it is done preloading resources, to change back
2067 * to normal Resources operation.
2133 * resources if the theme is null.
2138 Resources res, Theme theme, AttributeSet set, int[] attrs) {