/frameworks/base/graphics/java/android/graphics/drawable/ |
ClipDrawable.java | 17 package android.graphics.drawable; 31 * A Drawable that clips another Drawable based on this Drawable's current 32 * level value. You can control how much the child Drawable gets clipped in width 43 public class ClipDrawable extends Drawable implements Drawable.Callback { 57 public ClipDrawable(Drawable drawable, int gravity, int orientation) { 60 mClipState.mDrawable = drawable; [all...] |
LevelListDrawable.java | 17 package android.graphics.drawable; 37 * Each Drawable level is defined in a nested <code><item></code>. For example: 41 * <item android:maxLevel="0" android:drawable="@drawable/ic_wifi_signal_1" /> 42 * <item android:maxLevel="1" android:drawable="@drawable/ic_wifi_signal_2" /> 43 * <item android:maxLevel="2" android:drawable="@drawable/ic_wifi_signal_3" /> 44 * <item android:maxLevel="3" android:drawable="@drawable/ic_wifi_signal_4" / [all...] |
RotateDrawable.java | 17 package android.graphics.drawable; 34 * <p>A Drawable that can rotate another Drawable based on the current level 47 public class RotateDrawable extends Drawable implements Drawable.Callback { 54 * <p>Create a new rotating drawable with an empty state.</p> 61 * <p>Create a new rotating drawable with the specified state. A copy of 63 * drawable.</p> 65 * @param rotateState the state for this drawable 92 * Returns the drawable rotated by this RotateDrawable 237 Drawable drawable = null; local [all...] |
TransitionDrawable.java | 17 package android.graphics.drawable; 29 * Each Drawable in the transition is defined in a nested <code><item></code>. 39 public class TransitionDrawable extends LayerDrawable implements Drawable.Callback { 72 * Create a new transition drawable with the specified list of layers. At least 73 * 2 layers are required for this drawable to work properly. 75 public TransitionDrawable(Drawable[] layers) { 80 * Create a new transition drawable with no layer. To work correctly, at least 2 81 * layers must be added to this drawable. 83 * @see #TransitionDrawable(Drawable[]) 93 private TransitionDrawable(TransitionState state, Drawable[] layers) [all...] |
AnimationDrawable.java | 17 package android.graphics.drawable; 31 * An object used to create frame-by-frame animations, defined by a series of Drawable objects, 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 --> 46 * <item android:drawable="@drawable/wheel0" android:duration="50" /> 47 * <item android:drawable="@drawable/wheel1" android:duration="50" /> 48 * <item android:drawable="@drawable/wheel2" android:duration="50" /> [all...] |
PictureDrawable.java | 17 package android.graphics.drawable; 24 import android.graphics.drawable.Drawable; 31 * Drawable subclass that wraps a Picture, allowing the picture to be used 32 * whereever a Drawable is supported. 34 public class PictureDrawable extends Drawable { 39 * Construct a new drawable referencing the specified picture. The picture 42 * @param picture The picture to associate with the drawable. May be null. 49 * Return the picture associated with the drawable. May be null. 51 * @return the picture associated with the drawable, or null [all...] |
StateListDrawable.java | 17 package android.graphics.drawable; 30 * Lets you assign a number of graphic images to a single Drawable and swap out the visible item by a string 34 * Each state Drawable is defined in a nested <code><item></code> element.</p> 76 * @param drawable -The image to show. 78 public void addState(int[] stateSet, Drawable drawable) { 79 if (drawable != null) { 80 mStateListState.addStateSet(stateSet, drawable); 148 if (stateResId == com.android.internal.R.attr.drawable) { 158 Drawable dr [all...] |
/packages/apps/Email/tests/src/com/android/email/ |
UtilityUnitTests.java | 22 import android.graphics.drawable.Drawable; 97 Drawable inbox = fp.getIconIds(Mailbox.TYPE_INBOX); 98 Drawable mail = fp.getIconIds(Mailbox.TYPE_MAIL); 99 Drawable parent = fp.getIconIds(Mailbox.TYPE_PARENT); 100 Drawable drafts = fp.getIconIds(Mailbox.TYPE_DRAFTS); 101 Drawable outbox = fp.getIconIds(Mailbox.TYPE_OUTBOX); 102 Drawable sent = fp.getIconIds(Mailbox.TYPE_SENT); 103 Drawable trash = fp.getIconIds(Mailbox.TYPE_TRASH); 104 Drawable junk = fp.getIconIds(Mailbox.TYPE_JUNK) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
ColorFilters.java | 24 import android.graphics.drawable.*; 40 private Drawable mDrawable; 41 private Drawable[] mDrawables; 49 private static void addToTheRight(Drawable curr, Drawable prev) { 65 mDrawable = context.getResources().getDrawable(R.drawable.btn_default_normal); 70 R.drawable.btn_circle_normal, 71 R.drawable.btn_check_off, 72 R.drawable.btn_check_on 74 mDrawables = new Drawable[resIDs.length] [all...] |
Pictures.java | 22 import android.graphics.drawable.Drawable; 23 import android.graphics.drawable.PictureDrawable; 40 private Drawable mDrawable;
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
SoftKeyToggle.java | 19 import android.graphics.drawable.Drawable; 94 public Drawable getKeyIcon() { 101 public Drawable getKeyIconPopup() { 128 public Drawable getKeyBg() { 137 public Drawable getKeyHlBg() { 260 public Drawable mKeyIcon; 261 public Drawable mKeyIconPopup;
|
/frameworks/base/core/java/android/widget/ |
CheckedTextView.java | 24 import android.graphics.drawable.Drawable; 41 private Drawable mCheckMarkDrawable; 63 Drawable d = a.getDrawable(R.styleable.CheckedTextView_checkMark); 97 * Set the checkmark to a given Drawable, identified by its resourece id. This will be drawn 100 * @param resid The Drawable to use for the checkmark. 109 Drawable d = null; 117 * Set the checkmark to a given Drawable. This will be drawn when {@link #isChecked()} is true. 119 * @param d The Drawable to use for the checkmark. 121 public void setCheckMarkDrawable(Drawable d) [all...] |
ToggleButton.java | 22 import android.graphics.drawable.Drawable; 23 import android.graphics.drawable.LayerDrawable; 38 private Drawable mIndicatorDrawable; 124 public void setBackgroundDrawable(Drawable d) { 130 private void updateReferenceToIndicatorDrawable(Drawable backgroundDrawable) {
|
ProgressBar.java | 26 import android.graphics.drawable.AnimationDrawable; 27 import android.graphics.drawable.BitmapDrawable; 28 import android.graphics.drawable.ClipDrawable; 29 import android.graphics.drawable.Drawable; 30 import android.graphics.drawable.LayerDrawable; 31 import android.graphics.drawable.ShapeDrawable; 32 import android.graphics.drawable.StateListDrawable; 33 import android.graphics.drawable.Animatable; 34 import android.graphics.drawable.shapes.RoundRectShape 178 Drawable drawable = a.getDrawable(R.styleable.ProgressBar_progressDrawable); local [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
AbsSeekBarTest.java | 31 import android.graphics.drawable.Drawable; 114 args = {android.graphics.drawable.Drawable.class} 118 Drawable drawable1 = mResources.getDrawable(R.drawable.scenery); 119 Drawable drawable2 = mResources.getDrawable(R.drawable.pass); 140 MockDrawable drawable = new MockDrawable(); local 141 myAbsSeekBar.setProgressDrawable(drawable); [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
SubMenuBuilder.java | 20 import android.graphics.drawable.Drawable; 84 public SubMenu setIcon(Drawable icon) { 94 public SubMenu setHeaderIcon(Drawable icon) {
|
ContextMenuBuilder.java | 20 import android.graphics.drawable.Drawable; 46 public ContextMenu setHeaderIcon(Drawable icon) {
|
/frameworks/base/core/tests/coretests/src/android/view/ |
BitmapDrawable.java | 22 import android.graphics.drawable.Drawable;
|
/packages/apps/AccountsAndSyncSettings/src/com/android/settings/ |
AccountPreference.java | 26 import android.graphics.drawable.Drawable; 44 private Drawable mProviderIcon; 48 public AccountPreference(Context context, Account account, Drawable icon, 83 public void setProviderIcon(Drawable icon) { 121 res = R.drawable.ic_sync_green; 124 res = R.drawable.ic_sync_grey; 127 res = R.drawable.ic_sync_red; 130 res = R.drawable.ic_sync_red;
|
/packages/apps/Calendar/src/com/android/calendar/ |
MultiStateButton.java | 21 import android.graphics.drawable.Drawable; 50 //A list of all drawable resources used by this button in the order it uses them. 52 private Drawable mButtonDrawable; 69 mButtonResources = new int[] { R.drawable.widget_show }; 86 * Allows for a new set of drawable resource ids to be set. 121 * Set the background to a given Drawable, identified by its resource id. 123 * @param resid the resource id of the drawable to use as the background 132 Drawable d = null; 140 * Set the background to a given Drawable [all...] |
/development/samples/Home/src/com/example/android/home/ |
ApplicationInfo.java | 21 import android.graphics.drawable.Drawable; 41 Drawable icon;
|
/frameworks/base/core/java/android/preference/ |
SeekBarPreference.java | 20 import android.graphics.drawable.Drawable; 33 private Drawable mMyIcon;
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
NinePatchDrawable.java | 24 import android.graphics.drawable.Drawable; 26 public class NinePatchDrawable extends Drawable { 45 * Return the intrinsic width of the underlying drawable object. Returns 54 * Return the intrinsic height of the underlying drawable object. Returns 63 * Return in padding the insets suggested by this Drawable for placing 64 * content inside the drawable's bounds. Positive values move toward the 65 * center of the Drawable (set Rect.inset). Returns true if this drawable
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
FastBitmapDrawable.java | 19 import android.graphics.drawable.Drawable; 25 class FastBitmapDrawable extends Drawable {
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
SingleSourceCorpus.java | 21 import android.graphics.drawable.Drawable; 46 public Drawable getCorpusIcon() {
|