Home
last modified time | relevance | path

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

12345678910>>...13

/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/SupportVectorDrawable/static/src/com/example/android/support/vectordrawable/app/
DSimpleButtonBackground.java22 import android.graphics.drawable.Drawable.ConstantState;
24 import android.support.graphics.drawable.VectorDrawableCompat;
38 R.drawable.vector_drawable_scale0,
39 R.drawable.vector_drawable_scale1,
40 R.drawable.vector_drawable_scale2,
41 R.drawable.vector_drawable_scale3,
42 R.drawable.vector_drawable01,
43 R.drawable.vector_drawable02,
44 R.drawable.vector_drawable03,
45 R.drawable.vector_drawable04,
[all …]
/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/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/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/
DCharacterCardView.java23 import android.support.v4.graphics.drawable.RoundedBitmapDrawable;
24 import android.support.v4.graphics.drawable.RoundedBitmapDrawableFactory;
41 container.setBackgroundResource(R.drawable.character_focused); in CharacterCardView()
42 mainImage.setBackgroundResource(R.drawable.character_focused); in CharacterCardView()
44 container.setBackgroundResource(R.drawable.character_not_focused_padding); in CharacterCardView()
45 mainImage.setBackgroundResource(R.drawable.character_not_focused); in CharacterCardView()
61 …RoundedBitmapDrawable drawable = RoundedBitmapDrawableFactory.create(getContext().getResources(), … in updateUi() local
62 drawable.setAntiAlias(true); in updateUi()
63 drawable.setCornerRadius(Math.max(bitmap.getWidth(), bitmap.getHeight()) / 2.0f); in updateUi()
64 imageView.setImageDrawable(drawable); in updateUi()
DTextCardView.java23 import android.support.v4.graphics.drawable.RoundedBitmapDrawable;
24 import android.support.v4.graphics.drawable.RoundedBitmapDrawableFactory;
49 …RoundedBitmapDrawable drawable = RoundedBitmapDrawableFactory.create(getContext().getResources(), … in updateUi() local
50 drawable.setAntiAlias(true); in updateUi()
51 drawable.setCornerRadius( in updateUi()
53 imageView.setImageDrawable(drawable); in updateUi()
/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/SupportLeanbackDemos/src/com/example/android/leanback/
DBrowseFragment.java67 setBadgeDrawable(getActivity().getResources().getDrawable(R.drawable.ic_title)); in onCreate()
145 R.drawable.gallery_photo_1)); in createListRowAdapter()
149 R.drawable.gallery_photo_2)); in createListRowAdapter()
153 R.drawable.gallery_photo_3)); in createListRowAdapter()
156 R.drawable.gallery_photo_4)); in createListRowAdapter()
159 R.drawable.gallery_photo_5)); in createListRowAdapter()
163 R.drawable.gallery_photo_6)); in createListRowAdapter()
167 R.drawable.gallery_photo_7)); in createListRowAdapter()
171 R.drawable.gallery_photo_8)); in createListRowAdapter()
174 R.drawable.gallery_photo_1)); in createListRowAdapter()
[all …]
DBrowseSupportFragment.java69 setBadgeDrawable(getActivity().getResources().getDrawable(R.drawable.ic_title)); in onCreate()
147 R.drawable.gallery_photo_1)); in createListRowAdapter()
151 R.drawable.gallery_photo_2)); in createListRowAdapter()
155 R.drawable.gallery_photo_3)); in createListRowAdapter()
158 R.drawable.gallery_photo_4)); in createListRowAdapter()
161 R.drawable.gallery_photo_5)); in createListRowAdapter()
165 R.drawable.gallery_photo_6)); in createListRowAdapter()
169 R.drawable.gallery_photo_7)); in createListRowAdapter()
173 R.drawable.gallery_photo_8)); in createListRowAdapter()
176 R.drawable.gallery_photo_1)); in createListRowAdapter()
[all …]
DOnboardingDemoFragment.java20 import android.graphics.drawable.AnimationDrawable;
33 R.drawable.tv_bg,
34 R.drawable.gallery_photo_6,
35 R.drawable.gallery_photo_8
39 R.drawable.tv_content,
40 android.R.drawable.stat_sys_download,
41 android.R.drawable.ic_popup_sync
59 setLogoResourceId(R.drawable.ic_launcher); in onAttach()
DRowsFragment.java89 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in setupRows()
90 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2)); in setupRows()
91 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_3)); in setupRows()
92 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_4)); in setupRows()
93 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_5)); in setupRows()
94 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_6)); in setupRows()
95 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_7)); in setupRows()
96 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_8)); in setupRows()
DRowsSupportFragment.java91 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in setupRows()
92 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2)); in setupRows()
93 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_3)); in setupRows()
94 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_4)); in setupRows()
95 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_5)); in setupRows()
96 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_6)); in setupRows()
97 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_7)); in setupRows()
98 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_8)); in setupRows()
DOnboardingDemoSupportFragment.java22 import android.graphics.drawable.AnimationDrawable;
35 R.drawable.tv_bg,
36 R.drawable.gallery_photo_6,
37 R.drawable.gallery_photo_8
41 R.drawable.tv_content,
42 android.R.drawable.stat_sys_download,
43 android.R.drawable.ic_popup_sync
61 setLogoResourceId(R.drawable.ic_launcher); in onAttach()
/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,
/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/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/presenters/
DIconCardPresenter.java19 import android.graphics.drawable.Drawable;
41 image.setBackgroundResource(R.drawable.icon_focused); in onCreateView()
52 private void animateIconBackground(Drawable drawable, boolean hasFocus) { in animateIconBackground() argument
54 ObjectAnimator.ofInt(drawable, "alpha", 0, 255).setDuration(ANIMATION_DURATION).start(); in animateIconBackground()
56 ObjectAnimator.ofInt(drawable, "alpha", 255, 0).setDuration(ANIMATION_DURATION).start(); in animateIconBackground()
/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;
245 final Drawable drawable = imageView.getDrawable(); in getBitmapWorkerTask() local
246 if (drawable instanceof AsyncDrawable) { in getBitmapWorkerTask()
247 final AsyncDrawable asyncDrawable = (AsyncDrawable) drawable; in getBitmapWorkerTask()
286 BitmapDrawable drawable = null; in doInBackground() local
322 drawable = new BitmapDrawable(mResources, bitmap); in doInBackground()
326 drawable = new RecyclingBitmapDrawable(mResources, bitmap); in doInBackground()
[all …]
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/page/
DCustomTitleView.java18 import android.graphics.drawable.Drawable;
47 public void setBadgeDrawable(Drawable drawable) {
48 CustomTitleView.this.setBadgeDrawable(drawable);
76 public void setBadgeDrawable(Drawable drawable) { in setBadgeDrawable() argument
77 if (drawable != null) { in setBadgeDrawable()
79 mBadgeView.setImageDrawable(drawable); in setBadgeDrawable()
/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/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/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/
DPicassoBackgroundManagerTarget.java18 import android.graphics.drawable.Drawable;
39 @Override public void onBitmapFailed(Drawable drawable) { in onBitmapFailed() argument
40 this.mBackgroundManager.setDrawable(drawable); in onBitmapFailed()
43 @Override public void onPrepareLoad(Drawable drawable) { in onPrepareLoad() argument
/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 …]

12345678910>>...13