Lines Matching defs:drawable

17 package android.graphics.drawable;
97 * <li> <b>Layers</b>: a compound drawable, which draws multiple underlying
99 * <li> <b>States</b>: a compound drawable that selects one of a set of
101 * <li> <b>Levels</b>: a compound drawable that selects one of a set of
103 * <li> <b>Scale</b>: a compound drawable with a single child drawable,
111 * guide. For information and examples of creating drawable resources (XML or bitmap files that
113 * <a href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a>
137 * Specify a bounding rectangle for the Drawable. This is where the drawable
155 * Specify a bounding rectangle for the Drawable. This is where the drawable
163 * Return a copy of the drawable's bounds in the specified Rect (allocated
167 * @param bounds Rect to receive the drawable's bounds (allocated by the
175 * Return a copy of the drawable's bounds in a new Rect. This returns the
177 * be changed later by the drawable (i.e. it retains no reference to this
180 * @return A copy of the drawable's bounds
187 * Return the drawable's bounds Rect. Note: for efficiency, the returned
188 * object may be the same object stored in the drawable (though this is not
192 * be the same object stored in the drawable.
194 * @return The bounds of the drawable (which may change later, so caller
196 * stored bounds of this drawable.
210 * Set a mask of the configuration parameters for which this drawable
223 * Return a mask of the configuration parameters for which this drawable
240 * Set to true to have the drawable dither its colors when drawn to a device
247 * Set to true to have the drawable filter its bitmap when scaled or rotated
248 * (for drawables that use bitmaps). If the drawable does not use bitmaps,
255 * Implement this interface if you want to create an animated drawable that
256 * extends {@link android.graphics.drawable.Drawable Drawable}.
257 * Upon retrieving a drawable, use
258 * {@link Drawable#setCallback(android.graphics.drawable.Drawable.Callback)}
259 * to supply your implementation of the interface to the drawable; it uses
264 * Called when the drawable needs to be redrawn. A view at this point
266 * drawable appears).
268 * @param who The drawable that is requesting the update.
279 * @param who The drawable being scheduled.
291 * the parameters <var>(what, who)</var> to unschedule the drawable.
293 * @param who The drawable being unscheduled.
317 * @see #setCallback(android.graphics.drawable.Drawable.Callback)
333 * @see #setCallback(android.graphics.drawable.Drawable.Callback)
388 * Set the layout direction for this drawable. Should be a resolved direction as the
403 * Specify an alpha value for the drawable. 0 means fully transparent, and
409 * Specify an optional colorFilter for the drawable. Pass null to remove
416 * drawable.
441 * Specify a set of states for the drawable. These are use-case specific,
489 * @return The current drawable that will be used by this drawable. For simple drawables, this
490 * is just the drawable itself. For drawables that change state like
491 * {@link StateListDrawable} and {@link LevelListDrawable} this will be the child drawable
499 * Specify the level for the drawable. This allows a drawable to vary its
537 * @param restart You can supply true here to force the drawable to behave
657 * Return the intrinsic width of the underlying drawable object. Returns
665 * Return the intrinsic height of the underlying drawable object. Returns
702 * content inside the drawable's bounds. Positive values move toward the
703 * center of the Drawable (set Rect.inset). Returns true if this drawable
723 * Make this drawable mutable. This operation cannot be reversed. A mutable
724 * drawable is guaranteed to not share its state with any other drawable.
732 * @return This drawable.
741 * Create a drawable from an inputstream
748 * Create a drawable from an inputstream, using the given resources and
757 * Create a drawable from an inputstream, using the given resources and
804 * Create a drawable from an XML document. For more information on how to
806 * <a href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a>.
822 Drawable drawable = createFromXmlInner(r, parser, attrs);
824 if (drawable == null) {
828 return drawable;
834 * Returns null if the tag is not a valid drawable.
838 Drawable drawable;
843 drawable = new StateListDrawable();
845 drawable = new LevelListDrawable();
848 drawable = new MipmapDrawable();
851 drawable = new LayerDrawable();
853 drawable = new TransitionDrawable();
855 drawable = new ColorDrawable();
857 drawable = new GradientDrawable();
859 drawable = new ScaleDrawable();
861 drawable = new ClipDrawable();
863 drawable = new RotateDrawable();
865 drawable = new AnimatedRotateDrawable();
867 drawable = new AnimationDrawable();
869 drawable = new InsetDrawable();
871 drawable = new BitmapDrawable(r);
873 ((BitmapDrawable) drawable).setTargetDensity(r.getDisplayMetrics());
876 drawable = new NinePatchDrawable();
878 ((NinePatchDrawable) drawable).setTargetDensity(r.getDisplayMetrics());
882 ": invalid drawable tag " + name);
885 drawable.inflate(r, parser, attrs);
886 return drawable;
891 * Create a drawable from file path name.
946 * Create a new drawable without supplying resources the caller
964 * this drawable (and thus require completely reloading it).