Home
last modified time | relevance | path

Searched refs:imageView (Results 1 – 20 of 20) sorted by relevance

/development/samples/training/ContactsList/src/com/example/android/contactslist/util/
DImageLoader.java72 public void loadImage(Object data, ImageView imageView) { in loadImage() argument
74 imageView.setImageBitmap(mLoadingBitmap); in loadImage()
86 imageView.setImageBitmap(bitmap); in loadImage()
87 } else if (cancelPotentialWork(data, imageView)) { in loadImage()
88 final BitmapWorkerTask task = new BitmapWorkerTask(imageView); in loadImage()
91 imageView.setImageDrawable(asyncDrawable); in loadImage()
137 public static void cancelWork(ImageView imageView) { in cancelWork() argument
138 final BitmapWorkerTask bitmapWorkerTask = getBitmapWorkerTask(imageView); in cancelWork()
154 public static boolean cancelPotentialWork(Object data, ImageView imageView) { in cancelPotentialWork() argument
155 final BitmapWorkerTask bitmapWorkerTask = getBitmapWorkerTask(imageView); in cancelPotentialWork()
[all …]
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DImageWorker.java75 public void loadImage(Object data, ImageView imageView) { in loadImage() argument
88 imageView.setImageDrawable(value); in loadImage()
89 } else if (cancelPotentialWork(data, imageView)) { in loadImage()
91 final BitmapWorkerTask task = new BitmapWorkerTask(data, imageView); in loadImage()
94 imageView.setImageDrawable(asyncDrawable); in loadImage()
182 public static void cancelWork(ImageView imageView) { in cancelWork() argument
183 final BitmapWorkerTask bitmapWorkerTask = getBitmapWorkerTask(imageView); in cancelWork()
199 public static boolean cancelPotentialWork(Object data, ImageView imageView) { in cancelPotentialWork() argument
201 final BitmapWorkerTask bitmapWorkerTask = getBitmapWorkerTask(imageView); in cancelPotentialWork()
224 private static BitmapWorkerTask getBitmapWorkerTask(ImageView imageView) { in getBitmapWorkerTask() argument
[all …]
/development/samples/XmlAdapters/src/com/example/android/xmladapters/
DImageDownloader.java97 public void download(String url, ImageView imageView) { in download() argument
98 download(url, imageView, null); in download()
109 public void download(String url, ImageView imageView, String cookie) { in download() argument
114 forceDownload(url, imageView, cookie); in download()
116 cancelPotentialDownload(url, imageView); in download()
117 imageView.setImageBitmap(bitmap); in download()
133 private void forceDownload(String url, ImageView imageView, String cookie) { in forceDownload() argument
136 imageView.setImageDrawable(null); in forceDownload()
140 if (cancelPotentialDownload(url, imageView)) { in forceDownload()
141 BitmapDownloaderTask task = new BitmapDownloaderTask(imageView); in forceDownload()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/app/
DSetWallpaperActivity.java62 final ImageView imageView = (ImageView) findViewById(R.id.imageview); in onCreate() local
63 imageView.setDrawingCacheEnabled(true); in onCreate()
64 imageView.setImageDrawable(wallpaperDrawable); in onCreate()
71 imageView.setImageDrawable(wallpaperDrawable); in onCreate()
72 imageView.invalidate(); in onCreate()
80 wallpaperManager.setBitmap(imageView.getDrawingCache()); in onCreate()
/development/samples/Support7Demos/src/com/example/android/supportv7/graphics/
DImageLoader.java45 static void loadMediaStoreThumbnail(final ImageView imageView, in loadMediaStoreThumbnail() argument
53 imageView.setImageBitmap(cachedValue); in loadMediaStoreThumbnail()
64 imageView.getContext().getContentResolver(), in loadMediaStoreThumbnail()
72 imageView.setImageBitmap(bitmap); in loadMediaStoreThumbnail()
DPaletteActivity.java190 ImageView imageView = (ImageView) view.findViewById(R.id.image); in bindView() local
191 imageView.setImageDrawable(null); in bindView()
203 ImageLoader.loadMediaStoreThumbnail(imageView, id, new ImageLoader.Listener() { in bindView()
/development/samples/browseable/Notifications/Wearable/src/com.example.android.support.wearable.notifications/
DAnimatedNotificationDisplayActivity.java113 public ImageZoomView(Context context, ImageView imageView, int zoomLength) { in ImageZoomView() argument
115 addView(imageView); in ImageZoomView()
121 ImageView imageView = (ImageView) getChildAt(0); in onLayout() local
125 int imageWidth = imageView.getDrawable().getIntrinsicWidth(); in onLayout()
126 int imageHeight = imageView.getDrawable().getIntrinsicHeight(); in onLayout()
135 imageView.layout(left, top, left + imageWidth, top + imageHeight); in onLayout()
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/
DActivityAnimations.java76 ImageView imageView = new ImageView(this); in onCreate() local
77 imageView.setOnClickListener(thumbnailClickListener); in onCreate()
78 imageView.setImageDrawable(thumbnailDrawable); in onCreate()
79 mPicturesData.put(imageView, pictureData); in onCreate()
80 mGridLayout.addView(imageView); in onCreate()
DPictureDetailsActivity.java72 mImageView = (ImageView) findViewById(R.id.imageView); in onCreate()
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/ui/
DImageGridFragment.java290 ImageView imageView; in getView() local
292 imageView = new RecyclingImageView(mContext); in getView()
293 imageView.setScaleType(ImageView.ScaleType.CENTER_CROP); in getView()
294 imageView.setLayoutParams(mImageViewLayoutParams); in getView()
296 imageView = (ImageView) convertView; in getView()
300 if (imageView.getLayoutParams().height != mItemHeight) { in getView()
301 imageView.setLayoutParams(mImageViewLayoutParams); in getView()
306 mImageFetcher.loadImage(Images.imageThumbUrls[position - mNumColumns], imageView); in getView()
307 return imageView; in getView()
DImageDetailFragment.java77 mImageView = (ImageView) v.findViewById(R.id.imageView); in onCreateView()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DGrid2.java64 ImageView imageView; in getView() local
66 imageView = new ImageView(mContext); in getView()
67 imageView.setLayoutParams(new GridView.LayoutParams(45, 45)); in getView()
68 imageView.setAdjustViewBounds(false); in getView()
69 imageView.setScaleType(ImageView.ScaleType.CENTER_CROP); in getView()
70 imageView.setPadding(8, 8, 8, 8); in getView()
72 imageView = (ImageView) convertView; in getView()
75 imageView.setImageResource(mThumbIds[position]); in getView()
77 return imageView; in getView()
/development/samples/MultiResolution/src/com/example/android/multires/
DMultiRes.java67 ImageView imageView = (ImageView) findViewById(R.id.image_view); in showPhoto() local
68 imageView.setImageResource(mPhotoIds[photoIndex]); in showPhoto()
/development/samples/browseable/StorageClient/src/com.example.android.storageclient/
DStorageClientFragment.java220 final ImageView imageView = new ImageView(getActivity()); in onCreateDialog() local
221 mDialog.setContentView(imageView); in onCreateDialog()
238 imageView.setImageBitmap(bitmap); in onCreateDialog()
/development/samples/training/threadsample/src/com/example/android/threadsample/
DPhotoManager.java384 PhotoView imageView, in startDownload() argument
398 downloadTask.initializeDownloaderTask(PhotoManager.sInstance, imageView, cacheFlag); in startDownload()
416 imageView.setStatusResource(R.drawable.imagequeued); in startDownload()
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DContentFragment.java74 final ImageView imageView = (ImageView) mContentView.findViewById(R.id.image); in onCreateView() local
95 return processDrop(event, imageView); in onCreateView()
238 boolean processDrop(DragEvent event, ImageView imageView) { in processDrop() argument
/development/samples/browseable/BasicRenderScript/src/com.example.android.basicrenderscript/
DMainActivity.java61 mImageView = (ImageView) findViewById(R.id.imageView); in onCreate()
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
DRecipeListAdapter.java123 ImageView iv = (ImageView) view.findViewById(R.id.imageView); in getView()
/development/samples/browseable/RenderScriptIntrinsic/src/com.example.android.renderscriptintrinsic/
DMainActivity.java77 mImageView = (ImageView) findViewById(R.id.imageView); in onCreate()
/development/samples/browseable/DataLayer/Application/src/com.example.android.wearable.datalayer/
DMainActivity.java469 mThumbView = (ImageView) findViewById(R.id.imageView); in setupViews()