Lines Matching defs:drawable
17 package android.graphics.drawable;
40 * href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a>.</p>
62 * Create a new layer drawable with the list of specified layers.
64 * @param layers A list of drawables to use as layers in this new drawable.
71 * Create a new layer drawable with the specified list of layers and the specified
74 * @param layers The list of layers to add to this drawable.
75 * @param state The constant drawable state.
162 + ": <item> tag requires a 'drawable' attribute or "
163 + "child tag defining a drawable");
176 * Add a new layer to this drawable. The new layer is identified by an id.
178 * @param layer The drawable to add as a layer.
249 * Returns the drawable at the specified layer index.
251 * @param index The layer index of the drawable to retrieve.
253 * @return The {@link android.graphics.drawable.Drawable} at the specified layer index.
274 * @param drawable The replacement {@link Drawable}.
278 public boolean setDrawableByLayerId(int id, Drawable drawable) {
284 if (drawable != null) {
286 drawable.setBounds(bounds);
290 if (drawable != null) {
291 drawable.setCallback(this);
293 layers[i].mDrawable = drawable;
301 /** Specify modifiers to the bounds for the drawable[index].
416 * Sets the opacity of this drawable directly, instead of collecting the states from