Lines Matching refs:drawable

17 package android.graphics.drawable;
36 * Instantiates a drawable XML file into its corresponding
37 * {@link android.graphics.drawable.Drawable} objects.
55 * Loads the drawable resource with the specified identifier.
57 * @param context the context in which the drawable should be loaded
58 * @param id the identifier of the drawable resource
59 * @return a drawable, or {@code null} if the drawable failed to load
67 * Loads the drawable resource with the specified identifier.
69 * @param resources the resources from which the drawable should be loaded
70 * @param theme the theme against which the drawable should be inflated
71 * @param id the identifier of the drawable resource
72 * @return a drawable, or {@code null} if the drawable failed to load
81 * Constructs a new drawable inflater using the specified resources and
94 * Inflates a drawable from inside an XML document using an optional
98 * document defining a drawable resource. It will attempt to create a
102 * @param parser an XML parser positioned at the drawable tag
104 * @param theme the theme against which the drawable should be inflated, or
106 * @return a drawable
127 // can't contain $, so the <drawable> tag allows developers to specify
130 if (name.equals("drawable")) {
133 throw new InflateException("<drawable> tag must specify class attribute");
137 Drawable drawable = inflateFromTag(name);
138 if (drawable == null) {
139 drawable = inflateFromClass(name);
141 drawable.setSrcDensityOverride(density);
142 drawable.inflate(mRes, parser, attrs, theme);
143 return drawable;