Lines Matching defs: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
116 // can't contain $, so the <drawable> tag allows developers to specify
119 if (name.equals("drawable")) {
122 throw new InflateException("<drawable> tag must specify class attribute");
126 Drawable drawable = inflateFromTag(name);
127 if (drawable == null) {
128 drawable = inflateFromClass(name);
130 drawable.inflate(mRes, parser, attrs, theme);
131 return drawable;