Searched defs:drawable (Results 26 - 50 of 59) sorted by relevance

123

/frameworks/base/graphics/java/android/graphics/drawable/
H A DTransitionDrawable.java17 package android.graphics.drawable;
31 * href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a>.</p>
74 * Create a new transition drawable with the specified list of layers. At least
75 * 2 layers are required for this drawable to work properly.
82 * Create a new transition drawable with no layer. To work correctly, at least 2
83 * layers must be added to this drawable.
193 // the appropriate drawable[s] and return
227 * is disabled, the first drawable is always drawn opaque. With cross
228 * fade enabled, the first drawable is drawn with the opposite alpha of
229 * the second drawable
[all...]
H A DLayerDrawable.java17 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
278 setDrawableByLayerId(int id, Drawable drawable) argument
[all...]
H A DAnimationDrawable.java17 package android.graphics.drawable;
35 * file, placed in the res/drawable/ folder, and set it as the background to a View object. Then, call
42 * <p>spin_animation.xml file in res/drawable/ folder:</p>
44 * res/drawable/ folder --&gt;
46 * &lt;item android:drawable=&quot;@drawable/wheel0&quot; android:duration=&quot;50&quot; /&gt;
47 * &lt;item android:drawable=&quot;@drawable/wheel1&quot; android:duration=&quot;50&quot; /&gt;
48 * &lt;item android:drawable=&quot;@drawable/wheel
[all...]
H A DNinePatchDrawable.java17 package android.graphics.drawable;
73 * Create drawable from raw nine-patch data, not dealing with density.
75 * to ensure that the drawable has correctly set its target density.
83 * Create drawable from raw nine-patch data, setting initial target density
93 * Create drawable from raw nine-patch data, setting initial target density
105 * Create drawable from existing nine-patch, not dealing with density.
107 * to ensure that the drawable has correctly set its target density.
115 * Create drawable from existing nine-patch, setting initial target density
141 * Set the density scale at which this drawable will be rendered. This
142 * method assumes the drawable wil
[all...]
H A DRotateDrawable.java17 package android.graphics.drawable;
56 * <p>Create a new rotating drawable with an empty state.</p>
63 * <p>Create a new rotating drawable with the specified state. A copy of
65 * drawable.</p>
67 * @param rotateState the state for this drawable
94 * Returns the drawable rotated by this RotateDrawable.
240 Drawable drawable = null;
242 drawable = r.getDrawable(res);
256 if ((drawable = Drawable.createFromXmlInner(r, parser, attrs)) == null) {
257 Log.w("drawable", "Ba
[all...]
H A DAnimatedRotateDrawable.java17 package android.graphics.drawable;
59 final Drawable drawable = state.mDrawable;
60 if (drawable != null) {
61 drawable.setFilterBitmap(true);
62 if (drawable instanceof BitmapDrawable) {
63 ((BitmapDrawable) drawable).setAntiAlias(true);
73 final Drawable drawable = st.mDrawable;
74 final Rect bounds = drawable.getBounds();
84 drawable.draw(canvas);
137 * Returns the drawable rotate
[all...]
H A DBitmapDrawable.java17 package android.graphics.drawable;
44 * href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a>.</p>
76 * Create an empty drawable, not dealing with density.
78 * that the drawable has correctly set its target density.
86 * Create an empty drawable, setting initial target density based on
96 * Create drawable from a bitmap, not dealing with density.
98 * that the drawable has correctly set its target density.
106 * Create drawable from a bitmap, setting initial target density based on
115 * Create a drawable by opening a given file path and decoding the bitmap.
117 * that the drawable ha
[all...]
H A DShapeDrawable.java17 package android.graphics.drawable;
20 import android.graphics.drawable.shapes.Shape;
32 * A ShapeDrawable takes a {@link android.graphics.drawable.shapes.Shape}
35 * {@link android.graphics.drawable.shapes.RectShape}.
42 * <a href="{@docRoot}guide/topics/graphics/2d-graphics.html#shape-drawable">
45 * <a href="{@docRoot}guide/topics/resources/drawable-resource.html#Shape">Drawable Resources</a>
204 * Called from the drawable's draw() method after the canvas has been set
241 * Set the alpha level for this drawable [0..255]. Note that this drawable
244 * alpha is 75% (i.e. 192) and the drawable'
[all...]
H A DDrawable.java17 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
[all...]
H A DDrawableContainer.java17 package android.graphics.drawable;
137 * Change the global fade duration when a new drawable is entering
146 * Change the global fade duration when a new drawable is leaving
H A DGradientDrawable.java17 package android.graphics.drawable;
47 * href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a>.</p>
132 * Controls how the gradient is oriented relative to the drawable's bounds
158 * Create a new gradient drawable given an orientation and an array
181 * of a drawable loaded from a resource. It is recommended to invoke
199 * drawable is drawn in a round-rectangle, rather than a rectangle. This property
202 * of a drawable loaded from a resource. It is recommended to invoke
218 * <p>Set the stroke width and color for the drawable. If width is zero,
221 * of a drawable loaded from a resource. It is recommended to invoke
235 * <p>Set the stroke width and color for the drawable
[all...]
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/
H A DMipmapDrawableTest.java17 package android.graphics.drawable;
22 import android.graphics.drawable.Drawable;
23 import android.graphics.drawable.MipmapDrawable;
24 import android.graphics.drawable.DrawableContainer.DrawableContainerState;
49 // nothing happens if drawable is null
116 // adding an item should check bounds to see if new drawable is more appropriate
126 // check that correct drawable is selected for any size.
146 // check that correct drawable is selected.
/frameworks/opt/inputmethodcommon/java/com/android/inputmethodcommon/
H A DInputMethodSettingsImpl.java21 import android.graphics.drawable.Drawable;
160 public void setSubtypeEnablerIcon(Drawable drawable) { argument
162 mSubtypeEnablerIcon = drawable;
/frameworks/base/core/java/com/android/internal/widget/
H A DDrawableHolder.java26 import android.graphics.drawable.BitmapDrawable;
47 public DrawableHolder(BitmapDrawable drawable) { argument
48 this(drawable, 0.0f, 0.0f);
51 public DrawableHolder(BitmapDrawable drawable, float x, float y) { argument
52 mDrawable = drawable;
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
H A DPointCloud.java24 import android.graphics.drawable.Drawable;
118 public PointCloud(Drawable drawable) { argument
125 mDrawable = drawable;
127 drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());
/frameworks/base/core/java/android/widget/
H A DFrameLayout.java26 import android.graphics.drawable.Drawable;
220 * @param drawable The Drawable to be drawn on top of the children.
224 public void setForeground(Drawable drawable) { argument
225 if (mForeground != drawable) {
231 mForeground = drawable;
237 if (drawable != null) {
239 drawable.setCallback(this);
240 if (drawable.isStateful()) {
241 drawable.setState(getDrawableState());
245 if (drawable
[all...]
H A DSuggestionsAdapter.java32 import android.graphics.drawable.Drawable;
399 Drawable drawable = getDrawableFromResourceValue(value);
400 if (drawable != null) {
401 return drawable;
415 * Sets the drawable in an image view, makes sure the view is only visible if there
416 * is a drawable.
418 private void setViewDrawable(ImageView v, Drawable drawable, int nullVisibility) { argument
419 // Set the icon even if the drawable is null, since we need to clear any
421 v.setImageDrawable(drawable);
423 if (drawable
601 storeInIconCache(String resourceUri, Drawable drawable) argument
[all...]
H A DTabWidget.java25 import android.graphics.drawable.Drawable;
127 com.android.internal.R.drawable.tab_bottom_left_v4);
131 com.android.internal.R.drawable.tab_bottom_right_v4);
137 com.android.internal.R.drawable.tab_bottom_left);
141 com.android.internal.R.drawable.tab_bottom_right);
231 * Sets the drawable to use as a divider between the tab indicators.
232 * @param drawable the divider drawable
235 public void setDividerDrawable(Drawable drawable) { argument
236 super.setDividerDrawable(drawable);
253 setLeftStripDrawable(Drawable drawable) argument
274 setRightStripDrawable(Drawable drawable) argument
[all...]
H A DActivityChooserView.java28 import android.graphics.drawable.Drawable;
79 * Stores the background drawable to allow hiding and latter showing.
265 * <strong>Note:</strong> Clients would like to set this drawable
267 * example, if a share activity is to be chosen the drawable should
270 * @param drawable The drawable.
272 public void setExpandActivityOverflowButtonDrawable(Drawable drawable) { argument
273 mExpandActivityOverflowButtonImage.setImageDrawable(drawable);
H A DFastScroller.java26 import android.graphics.drawable.Drawable;
27 import android.graphics.drawable.NinePatchDrawable;
245 private void useThumbDrawable(Context context, Drawable drawable) { argument
246 mThumbDrawable = drawable;
247 if (drawable instanceof NinePatchDrawable) {
253 mThumbW = drawable.getIntrinsicWidth();
254 mThumbH = drawable.getIntrinsicHeight();
H A DImageView.java30 import android.graphics.drawable.BitmapDrawable;
31 import android.graphics.drawable.Drawable;
70 // these are applied to the drawable
184 * hard to know where the drawable actually is. This is made
186 * can be applied. In theory we could get the drawable's bounds
212 * to preserve the aspect ratio of its drawable
215 * to presrve the original aspect ratio of the drawable
227 * to preserve the aspect ratio of its drawable.
229 * to presrve the original aspect ratio of the drawable
319 /** Return the view's drawable, o
395 setImageDrawable(Drawable drawable) argument
[all...]
H A DProgressBar.java28 import android.graphics.drawable.Animatable;
29 import android.graphics.drawable.AnimationDrawable;
30 import android.graphics.drawable.BitmapDrawable;
31 import android.graphics.drawable.ClipDrawable;
32 import android.graphics.drawable.Drawable;
33 import android.graphics.drawable.LayerDrawable;
34 import android.graphics.drawable.ShapeDrawable;
35 import android.graphics.drawable.StateListDrawable;
36 import android.graphics.drawable.shapes.RoundRectShape;
37 import android.graphics.drawable
315 tileify(Drawable drawable, boolean clip) argument
374 tileifyIndeterminate(Drawable drawable) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DGcSnapshot.java560 * @param drawable
562 public void draw(Drawable drawable) { argument
563 draw(drawable, null, false /*compositeOnly*/, false /*forceSrcMode*/);
570 * @param drawable
576 public void draw(Drawable drawable, Paint_Delegate paint, boolean compositeOnly, argument
583 drawInLayer(mLayers.get(0), drawable, paint, compositeOnly, forceSrcMode);
593 drawInLayer(layer, drawable, paint, compositeOnly, forceSrcMode);
603 private void drawInLayer(Layer layer, Drawable drawable, Paint_Delegate paint, argument
613 drawable.draw(configuredGraphics2D, paint);
/frameworks/base/core/java/android/app/
H A DDialog.java26 import android.graphics.drawable.Drawable;
1058 public final void setFeatureDrawable(int featureId, Drawable drawable) { argument
1059 getWindow().setFeatureDrawable(featureId, drawable);
/frameworks/base/core/java/android/view/
H A DWindow.java23 import android.graphics.drawable.Drawable;
1003 * transparent, you can use an empty drawable (for instance a ColorDrawable
1004 * with the color 0 or the system drawable android:drawable/empty.)
1006 * @param resid The resource identifier of a drawable resource which will be
1017 * transparent, you can use an empty drawable (for instance a ColorDrawable
1018 * with the color 0 or the system drawable android:drawable/empty.)
1020 * @param drawable The new Drawable to use for this window's background.
1022 public abstract void setBackgroundDrawable(Drawable drawable); argument
1061 setFeatureDrawable(int featureId, Drawable drawable) argument
1225 setChildDrawable(int featureId, Drawable drawable) argument
[all...]

Completed in 412 milliseconds

123