Home
last modified time | relevance | path

Searched refs:drawable (Results 1 – 25 of 241) sorted by relevance

12345678910

/development/samples/ApiDemos/src/com/example/android/apis/view/
DGrid2.java83 R.drawable.sample_thumb_0, R.drawable.sample_thumb_1,
84 R.drawable.sample_thumb_2, R.drawable.sample_thumb_3,
85 R.drawable.sample_thumb_4, R.drawable.sample_thumb_5,
86 R.drawable.sample_thumb_6, R.drawable.sample_thumb_7,
87 R.drawable.sample_thumb_0, R.drawable.sample_thumb_1,
88 R.drawable.sample_thumb_2, R.drawable.sample_thumb_3,
89 R.drawable.sample_thumb_4, R.drawable.sample_thumb_5,
90 R.drawable.sample_thumb_6, R.drawable.sample_thumb_7,
91 R.drawable.sample_thumb_0, R.drawable.sample_thumb_1,
92 R.drawable.sample_thumb_2, R.drawable.sample_thumb_3,
[all …]
DList8.java83 R.drawable.sample_thumb_0, R.drawable.sample_thumb_1, R.drawable.sample_thumb_2,
84 R.drawable.sample_thumb_3, R.drawable.sample_thumb_4, R.drawable.sample_thumb_5,
85 R.drawable.sample_thumb_6, R.drawable.sample_thumb_7};
114 i.setBackgroundResource(R.drawable.picture_frame); in getView()
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DDirectory.java25 new DirectoryEntry("Red Balloon", R.drawable.red_balloon), in initializeDirectory()
26 new DirectoryEntry("Green Balloon", R.drawable.green_balloon), in initializeDirectory()
27 new DirectoryEntry("Blue Balloon", R.drawable.blue_balloon)}), in initializeDirectory()
29 new DirectoryEntry("Old school huffy", R.drawable.blue_bike), in initializeDirectory()
30 new DirectoryEntry("New Bikes", R.drawable.rainbow_bike), in initializeDirectory()
31 new DirectoryEntry("Chrome Fast", R.drawable.chrome_wheel)}), in initializeDirectory()
33 new DirectoryEntry("Steampunk Android", R.drawable.punk_droid), in initializeDirectory()
34 new DirectoryEntry("Stargazing Android", R.drawable.stargazer_droid), in initializeDirectory()
35 new DirectoryEntry("Big Android", R.drawable.big_droid) }), in initializeDirectory()
37 new DirectoryEntry("Cupcake", R.drawable.cupcake), in initializeDirectory()
[all …]
/development/samples/browseable/FragmentTransition/src/com.example.android.fragmenttransition/
DMeat.java33 new Meat(R.drawable.p1, "First"),
34 new Meat(R.drawable.p2, "Second"),
35 new Meat(R.drawable.p3, "Third"),
36 new Meat(R.drawable.p4, "Fourth"),
37 new Meat(R.drawable.p5, "Fifth"),
38 new Meat(R.drawable.p6, "Sixth"),
39 new Meat(R.drawable.p7, "Seventh"),
40 new Meat(R.drawable.p8, "Eighth"),
41 new Meat(R.drawable.p9, "Ninth"),
42 new Meat(R.drawable.p10, "Tenth"),
[all …]
/development/samples/browseable/AdapterTransition/src/com.example.android.adaptertransition/
DMeat.java33 new Meat(R.drawable.p1, "First"),
34 new Meat(R.drawable.p2, "Second"),
35 new Meat(R.drawable.p3, "Third"),
36 new Meat(R.drawable.p4, "Fourth"),
37 new Meat(R.drawable.p5, "Fifth"),
38 new Meat(R.drawable.p6, "Sixth"),
39 new Meat(R.drawable.p7, "Seventh"),
40 new Meat(R.drawable.p8, "Eighth"),
41 new Meat(R.drawable.p9, "Ninth"),
42 new Meat(R.drawable.p10, "Tenth"),
[all …]
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/ui/
DRecyclingImageView.java20 import android.graphics.drawable.Drawable;
21 import android.graphics.drawable.LayerDrawable;
56 public void setImageDrawable(Drawable drawable) { in setImageDrawable() argument
61 super.setImageDrawable(drawable); in setImageDrawable()
64 notifyDrawable(drawable, true); in setImageDrawable()
76 private static void notifyDrawable(Drawable drawable, final boolean isDisplayed) { in notifyDrawable() argument
77 if (drawable instanceof RecyclingBitmapDrawable) { in notifyDrawable()
79 ((RecyclingBitmapDrawable) drawable).setIsDisplayed(isDisplayed); in notifyDrawable()
80 } else if (drawable instanceof LayerDrawable) { in notifyDrawable()
82 LayerDrawable layerDrawable = (LayerDrawable) drawable; in notifyDrawable()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DDensityActivity.java28 import android.graphics.drawable.BitmapDrawable;
29 import android.graphics.drawable.Drawable;
56 addBitmapDrawable(layout, R.drawable.logo120dpi, true); in onCreate()
57 addBitmapDrawable(layout, R.drawable.logo160dpi, true); in onCreate()
58 addBitmapDrawable(layout, R.drawable.logo240dpi, true); in onCreate()
63 addBitmapDrawable(layout, R.drawable.logo120dpi, false); in onCreate()
64 addBitmapDrawable(layout, R.drawable.logo160dpi, false); in onCreate()
65 addBitmapDrawable(layout, R.drawable.logo240dpi, false); in onCreate()
70 addResourceDrawable(layout, R.drawable.logo120dpi); in onCreate()
71 addResourceDrawable(layout, R.drawable.logo160dpi); in onCreate()
[all …]
/development/samples/MultiResolution/src/com/example/android/multires/
DMultiRes.java29 private int[] mPhotoIds = new int[] { R.drawable.sample_0,
30 R.drawable.sample_1, R.drawable.sample_2, R.drawable.sample_3,
31 R.drawable.sample_4, R.drawable.sample_5, R.drawable.sample_6,
32 R.drawable.sample_7 };
/development/samples/devbytes/graphics/BitmapAllocation/src/com/example/android/bitmapallocation/
DBitmapAllocation.java52 final int[] imageIDs = {R.drawable.a, R.drawable.b, R.drawable.c, R.drawable.d, in onCreate()
53 R.drawable.e, R.drawable.f}; in onCreate()
62 BitmapFactory.decodeResource(getResources(), R.drawable.a, mBitmapOptions); in onCreate()
68 BitmapFactory.decodeResource(getResources(), R.drawable.a, mBitmapOptions); in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DActivityTransition.java24 import android.graphics.drawable.ColorDrawable;
44 R.drawable.ball,
45 R.drawable.block,
46 R.drawable.ducky,
47 R.drawable.jellies,
48 R.drawable.mug,
49 R.drawable.pencil,
50 R.drawable.scissors,
51 R.drawable.woot,
DTransition3d.java45 R.drawable.photo1,
46 R.drawable.photo2,
47 R.drawable.photo3,
48 R.drawable.photo4,
49 R.drawable.photo5,
50 R.drawable.photo6
/development/apps/NinePatchLab/src/com/android/ninepatch/
DNinePatchLab.java25 import android.graphics.drawable.*;
78 R.drawable.bg_grad_blue, in NPView()
79 R.drawable.bg_grad_green, in NPView()
80 R.drawable.bg_grad_grey, in NPView()
81 R.drawable.bg_grad_red, in NPView()
82 R.drawable.bg_grad_yellow, in NPView()
85 R.drawable.btn_dark_ticks_stretch_multiple, in NPView()
86 R.drawable.btn_dark_ticks_stretch_single, in NPView()
87 R.drawable.btn_transparent_ticks_stretch_multiple, in NPView()
88 R.drawable.btn_transparent_ticks_stretch_single, in NPView()
[all …]
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DBrowseFragment.java46 setBadgeDrawable(getActivity().getResources().getDrawable(R.drawable.ic_title)); in onCreate()
94 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in setupRows()
95 … listRowAdapter.add(new PhotoItem("This is a test", "Only a test", R.drawable.gallery_photo_2)); in setupRows()
96 … listRowAdapter.add(new PhotoItem("Android TV", "by Google", R.drawable.gallery_photo_3)); in setupRows()
97 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_4)); in setupRows()
98 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_5)); in setupRows()
99 … listRowAdapter.add(new PhotoItem("This is a test", "Only a test", R.drawable.gallery_photo_6)); in setupRows()
100 … listRowAdapter.add(new PhotoItem("Android TV", "open RowsActivity", R.drawable.gallery_photo_7)); in setupRows()
101 … listRowAdapter.add(new PhotoItem("Leanback", "open MainActivity", R.drawable.gallery_photo_8)); in setupRows()
116 if ( ((PhotoItem) item).getImageResourceId() == R.drawable.gallery_photo_8) { in onItemClicked()
[all …]
DRowsFragment.java95 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in setupRows()
96 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2)); in setupRows()
97 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_3)); in setupRows()
98 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_4)); in setupRows()
99 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_5)); in setupRows()
100 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_6)); in setupRows()
101 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_7)); in setupRows()
102 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_8)); in setupRows()
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DImageWorker.java23 import android.graphics.drawable.BitmapDrawable;
24 import android.graphics.drawable.ColorDrawable;
25 import android.graphics.drawable.Drawable;
26 import android.graphics.drawable.TransitionDrawable;
226 final Drawable drawable = imageView.getDrawable(); in getBitmapWorkerTask() local
227 if (drawable instanceof AsyncDrawable) { in getBitmapWorkerTask()
228 final AsyncDrawable asyncDrawable = (AsyncDrawable) drawable; in getBitmapWorkerTask()
259 BitmapDrawable drawable = null; in doInBackground() local
295 drawable = new BitmapDrawable(mResources, bitmap); in doInBackground()
299 drawable = new RecyclingBitmapDrawable(mResources, bitmap); in doInBackground()
[all …]
/development/samples/Home/src/com/example/android/home/
DWallpaper.java46 R.drawable.bg_android_icon,
47 R.drawable.bg_sunrise_icon,
48 R.drawable.bg_sunset_icon,
52 R.drawable.bg_android,
53 R.drawable.bg_sunrise,
54 R.drawable.bg_sunset,
143 i.setBackgroundResource(android.R.drawable.picture_frame); in getView()
/development/samples/browseable/SkeletonWearableApp/Wearable/src/com.example.android.google.wearable.app/
DGridExampleActivity.java30 import android.graphics.drawable.BitmapDrawable;
31 import android.graphics.drawable.Drawable;
85 Drawable drawable = mBackgrounds.get(pt); in getBackgroundForPage() local
86 if (drawable == null) { in getBackgroundForPage()
98 drawable = new BitmapDrawable(mContext.getResources(), bm); in getBackgroundForPage()
99 mBackgrounds.put(pt, drawable); in getBackgroundForPage()
101 return drawable; in getBackgroundForPage()
/development/samples/JetBoy/src/com/example/android/jetboy/
DJetBoyView.java367 mTitleBG = BitmapFactory.decodeResource(mRes, R.drawable.title_hori); in JetBoyThread()
374 mBackgroundImageFar = BitmapFactory.decodeResource(mRes, R.drawable.background_a); in JetBoyThread()
376 mLaserShot = BitmapFactory.decodeResource(mRes, R.drawable.laser); in JetBoyThread()
378 mBackgroundImageNear = BitmapFactory.decodeResource(mRes, R.drawable.background_b); in JetBoyThread()
380 mShipFlying[0] = BitmapFactory.decodeResource(mRes, R.drawable.ship2_1); in JetBoyThread()
381 mShipFlying[1] = BitmapFactory.decodeResource(mRes, R.drawable.ship2_2); in JetBoyThread()
382 mShipFlying[2] = BitmapFactory.decodeResource(mRes, R.drawable.ship2_3); in JetBoyThread()
383 mShipFlying[3] = BitmapFactory.decodeResource(mRes, R.drawable.ship2_4); in JetBoyThread()
385 mBeam[0] = BitmapFactory.decodeResource(mRes, R.drawable.intbeam_1); in JetBoyThread()
386 mBeam[1] = BitmapFactory.decodeResource(mRes, R.drawable.intbeam_2); in JetBoyThread()
[all …]
/development/samples/devbytes/animation/PictureViewer/src/com/example/android/pictureviewer/
DPictureViewer.java23 import android.graphics.drawable.BitmapDrawable;
39 R.drawable.p1,
40 R.drawable.p2,
41 R.drawable.p3,
42 R.drawable.p4,
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/
DBitmapUtils.java26 import android.graphics.drawable.BitmapDrawable;
32 R.drawable.p1,
33 R.drawable.p2,
34 R.drawable.p3,
35 R.drawable.p4
/development/samples/browseable/RenderScriptIntrinsic/src/com.example.android.renderscriptintrinsic/
DThumbnailRadioButton.java22 import android.graphics.drawable.BitmapDrawable;
23 import android.graphics.drawable.Drawable;
24 import android.graphics.drawable.LayerDrawable;
25 import android.graphics.drawable.ShapeDrawable;
26 import android.graphics.drawable.StateListDrawable;
27 import android.graphics.drawable.shapes.RectShape;
/development/samples/browseable/GridViewPager/Wearable/src/com.example.android.wearable.gridviewpager/
DSampleGridPagerAdapter.java24 import android.graphics.drawable.ColorDrawable;
25 import android.graphics.drawable.Drawable;
26 import android.graphics.drawable.TransitionDrawable;
99 int resid = R.drawable.bugdroid_large;
128 R.drawable.debug_background_1,
129 R.drawable.debug_background_2,
130 R.drawable.debug_background_3,
131 R.drawable.debug_background_4,
132 R.drawable.debug_background_5
/development/samples/ApiDemos/src/com/example/android/apis/app/
DPresentationActivity.java30 import android.graphics.drawable.GradientDrawable;
85 R.drawable.frantic,
86 R.drawable.photo1, R.drawable.photo2, R.drawable.photo3,
87 R.drawable.photo4, R.drawable.photo5, R.drawable.photo6,
88 R.drawable.sample_4,
429 GradientDrawable drawable = new GradientDrawable(); in onCreate() local
430 drawable.setShape(GradientDrawable.RECTANGLE); in onCreate()
431 drawable.setGradientType(GradientDrawable.RADIAL_GRADIENT); in onCreate()
436 drawable.setGradientRadius(Math.max(p.x, p.y) / 2); in onCreate()
437 drawable.setColors(mContents.colors); in onCreate()
[all …]
DStatusBarNotifications.java56 setMood(R.drawable.stat_happy, R.string.status_bar_notifications_happy_message, in onCreate()
64 setMood(R.drawable.stat_neutral, R.string.status_bar_notifications_ok_message, in onCreate()
72 setMood(R.drawable.stat_sad, R.string.status_bar_notifications_sad_message, false); in onCreate()
79 setMood(R.drawable.stat_happy, R.string.status_bar_notifications_happy_message, in onCreate()
87 … setMood(R.drawable.stat_neutral, R.string.status_bar_notifications_ok_message, true); in onCreate()
94 setMood(R.drawable.stat_sad, R.string.status_bar_notifications_sad_message, true); in onCreate()
101 setMoodView(R.drawable.stat_happy, R.string.status_bar_notifications_happy_message); in onCreate()
108 setMoodView(R.drawable.stat_neutral, R.string.status_bar_notifications_ok_message); in onCreate()
115 setMoodView(R.drawable.stat_sad, R.string.status_bar_notifications_sad_message); in onCreate()
252 R.drawable.stat_happy, // the icon for the status bar in setDefault()
/development/samples/training/threadsample/src/com/example/android/threadsample/
DPhotoView.java23 import android.graphics.drawable.Drawable;
238 public void setImageDrawable(Drawable drawable) { in setImageDrawable() argument
247 if (drawable == null) { in setImageDrawable()
258 super.setImageDrawable(drawable); in setImageDrawable()
330 public void setStatusDrawable(Drawable drawable) { in setStatusDrawable() argument
334 setImageDrawable(drawable); in setStatusDrawable()

12345678910