Lines Matching refs:drawable

17 package android.graphics.drawable;
86 * <li> <b>Layers</b>: a compound drawable, which draws multiple underlying
88 * <li> <b>States</b>: a compound drawable that selects one of a set of
90 * <li> <b>Levels</b>: a compound drawable that selects one of a set of
92 * <li> <b>Scale</b>: a compound drawable with a single child drawable,
95 * <p>For information and examples of creating drawable resources (XML or bitmap files that
97 * href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a>.
118 * Specify a bounding rectangle for the Drawable. This is where the drawable
136 * Specify a bounding rectangle for the Drawable. This is where the drawable
144 * Return a copy of the drawable's bounds in the specified Rect (allocated
148 * @param bounds Rect to receive the drawable's bounds (allocated by the
156 * Return a copy of the drawable's bounds in a new Rect. This returns the
158 * be changed later by the drawable (i.e. it retains no reference to this
161 * @return A copy of the drawable's bounds
168 * Return the drawable's bounds Rect. Note: for efficiency, the returned
169 * object may be the same object stored in the drawable (though this is not
173 * be the same object stored in the drawable.
175 * @return The bounds of the drawable (which may change later, so caller
177 * stored bounds of this drawable.
191 * Set a mask of the configuration parameters for which this drawable
204 * Return a mask of the configuration parameters for which this drawable
221 * Set to true to have the drawable dither its colors when drawn to a device
228 * Set to true to have the drawable filter its bitmap when scaled or rotated
229 * (for drawables that use bitmaps). If the drawable does not use bitmaps,
236 * Implement this interface if you want to create an animated drawable that
237 * extends {@link android.graphics.drawable.Drawable Drawable}.
238 * Upon retrieving a drawable, use
239 * {@link Drawable#setCallback(android.graphics.drawable.Drawable.Callback)}
240 * to supply your implementation of the interface to the drawable; it uses
245 * Called when the drawable needs to be redrawn. A view at this point
247 * drawable appears).
249 * @param who The drawable that is requesting the update.
260 * @param who The drawable being scheduled.
272 * the parameters <var>(what, who)</var> to unschedule the drawable.
274 * @param who The drawable being unscheduled.
338 * Specify an alpha value for the drawable. 0 means fully transparent, and
344 * Specify an optional colorFilter for the drawable. Pass null to remove
351 * drawable.
376 * Specify a set of states for the drawable. These are use-case specific,
417 * @return The current drawable that will be used by this drawable. For simple drawables, this
418 * is just the drawable itself. For drawables that change state like
419 * {@link StateListDrawable} and {@link LevelListDrawable} this will be the child drawable
427 * Specify the level for the drawable. This allows a drawable to vary its
465 * @param restart You can supply true here to force the drawable to behave
582 * Return the intrinsic width of the underlying drawable object. Returns
590 * Return the intrinsic height of the underlying drawable object. Returns
627 * content inside the drawable's bounds. Positive values move toward the
628 * center of the Drawable (set Rect.inset). Returns true if this drawable
638 * Make this drawable mutable. This operation cannot be reversed. A mutable
639 * drawable is guaranteed to not share its state with any other drawable.
647 * @return This drawable.
654 * Create a drawable from an inputstream
661 * Create a drawable from an inputstream, using the given resources and
670 * Create a drawable from an inputstream, using the given resources and
710 * Create a drawable from an XML document. For more information on how to
712 * <a href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a>.
728 Drawable drawable = createFromXmlInner(r, parser, attrs);
730 if (drawable == null) {
734 return drawable;
740 * Returns null if the tag is not a valid drawable.
744 Drawable drawable;
749 drawable = new StateListDrawable();
751 drawable = new LevelListDrawable();
753 drawable = new LayerDrawable();
755 drawable = new TransitionDrawable();
757 drawable = new ColorDrawable();
759 drawable = new GradientDrawable();
761 drawable = new ScaleDrawable();
763 drawable = new ClipDrawable();
765 drawable = new RotateDrawable();
767 drawable = new AnimatedRotateDrawable();
769 drawable = new AnimationDrawable();
771 drawable = new InsetDrawable();
773 drawable = new BitmapDrawable();
775 ((BitmapDrawable) drawable).setTargetDensity(r.getDisplayMetrics());
778 drawable = new NinePatchDrawable();
780 ((NinePatchDrawable) drawable).setTargetDensity(r.getDisplayMetrics());
784 ": invalid drawable tag " + name);
787 drawable.inflate(r, parser, attrs);
788 return drawable;
793 * Create a drawable from file path name.
825 * Create a new drawable without supplying resources the caller
842 * this drawable (and thus require completely reloading it).