Home
last modified time | relevance | path

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

12345

/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 …]
DImageSwitcher1.java101 i.setBackgroundResource(R.drawable.picture_frame); in getView()
110 R.drawable.sample_thumb_0, R.drawable.sample_thumb_1,
111 R.drawable.sample_thumb_2, R.drawable.sample_thumb_3,
112 R.drawable.sample_thumb_4, R.drawable.sample_thumb_5,
113 R.drawable.sample_thumb_6, R.drawable.sample_thumb_7};
116 R.drawable.sample_0, R.drawable.sample_1, R.drawable.sample_2,
117 R.drawable.sample_3, R.drawable.sample_4, R.drawable.sample_5,
118 R.drawable.sample_6, R.drawable.sample_7};
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()
DGallery1.java81 R.drawable.gallery_photo_1,
82 R.drawable.gallery_photo_2,
83 R.drawable.gallery_photo_3,
84 R.drawable.gallery_photo_4,
85 R.drawable.gallery_photo_5,
86 R.drawable.gallery_photo_6,
87 R.drawable.gallery_photo_7,
88 R.drawable.gallery_photo_8
/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/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/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 …]
DBitmapDecode.java23 import android.graphics.drawable.*;
69 is = context.getResources().openRawResource(R.drawable.beach); in SampleView()
87 is = context.getResources().openRawResource(R.drawable.frog); in SampleView()
100 mDrawable = context.getResources().getDrawable(R.drawable.button); in SampleView()
103 is = context.getResources().openRawResource(R.drawable.animated_gif); in SampleView()
DPictureLayout.java23 import android.graphics.drawable.Drawable;
98 Drawable drawable = getBackground(); in onMeasure() local
99 if (drawable != null) { in onMeasure()
100 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight()); in onMeasure()
101 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); in onMeasure()
DColorFilters.java24 import android.graphics.drawable.*;
64 mDrawable = context.getResources().getDrawable(R.drawable.btn_default_normal); in SampleView()
69 R.drawable.btn_circle_normal, in SampleView()
70 R.drawable.btn_check_off, in SampleView()
71 R.drawable.btn_check_on in SampleView()
/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/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/SoftKeyboard/src/com/android/inputmethodcommon/
DInputMethodSettingsInterface.java25 import android.graphics.drawable.Drawable;
68 public void setSubtypeEnablerIcon(Drawable drawable); in setSubtypeEnablerIcon() argument
DInputMethodSettingsFragment.java26 import android.graphics.drawable.Drawable;
89 public void setSubtypeEnablerIcon(Drawable drawable) { in setSubtypeEnablerIcon() argument
90 mSettings.setSubtypeEnablerIcon(drawable); in setSubtypeEnablerIcon()
/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/ApiDemos/src/com/example/android/apis/animation/
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
DReversingAnimation.java33 import android.graphics.drawable.ShapeDrawable;
34 import android.graphics.drawable.shapes.OvalShape;
105 ShapeDrawable drawable = new ShapeDrawable(circle); in createBall() local
106 ShapeHolder shapeHolder = new ShapeHolder(drawable); in createBall()
113 Paint paint = drawable.getPaint(); //new Paint(Paint.ANTI_ALIAS_FLAG); in createBall()
DAnimationSeeking.java35 import android.graphics.drawable.ShapeDrawable;
36 import android.graphics.drawable.shapes.OvalShape;
129 ShapeDrawable drawable = new ShapeDrawable(circle); in addBall() local
130 ShapeHolder shapeHolder = new ShapeHolder(drawable); in addBall()
137 Paint paint = drawable.getPaint(); in addBall()
DCustomEvaluator.java34 import android.graphics.drawable.ShapeDrawable;
35 import android.graphics.drawable.shapes.OvalShape;
144 ShapeDrawable drawable = new ShapeDrawable(circle); in createBall() local
145 ShapeHolder shapeHolder = new ShapeHolder(drawable); in createBall()
152 Paint paint = drawable.getPaint(); //new Paint(Paint.ANTI_ALIAS_FLAG); in createBall()
DAnimationCloning.java31 import android.graphics.drawable.ShapeDrawable;
32 import android.graphics.drawable.shapes.OvalShape;
109 ShapeDrawable drawable = new ShapeDrawable(circle); in addBall() local
110 ShapeHolder shapeHolder = new ShapeHolder(drawable); in addBall()
117 Paint paint = drawable.getPaint(); //new Paint(Paint.ANTI_ALIAS_FLAG); in addBall()
DBouncingBalls.java21 import android.graphics.drawable.ColorDrawable;
31 import android.graphics.drawable.ShapeDrawable;
32 import android.graphics.drawable.shapes.OvalShape;
155 ShapeDrawable drawable = new ShapeDrawable(circle); in addBall() local
156 ShapeHolder shapeHolder = new ShapeHolder(drawable); in addBall()
163 Paint paint = drawable.getPaint(); //new Paint(Paint.ANTI_ALIAS_FLAG); in addBall()
/development/samples/ApiDemos/src/com/example/android/apis/app/
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()
DNotifyingService.java70 showNotification(R.drawable.stat_happy,
74 showNotification(R.drawable.stat_neutral,
78 showNotification(R.drawable.stat_sad,
/development/samples/training/bitmapfun/src/com/example/android/bitmapfun/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;
203 final Drawable drawable = imageView.getDrawable(); in getBitmapWorkerTask() local
204 if (drawable instanceof AsyncDrawable) { in getBitmapWorkerTask()
205 final AsyncDrawable asyncDrawable = (AsyncDrawable) drawable; in getBitmapWorkerTask()
/development/samples/XmlAdapters/src/com/example/android/xmladapters/
DContactPhotoBinder.java25 import android.graphics.drawable.BitmapDrawable;
26 import android.graphics.drawable.Drawable;
55 mDefault = mResources.getDrawable(R.drawable.ic_contact_picture); in ContactPhotoBinder()

12345