Home
last modified time | relevance | path

Searched refs:imageView (Results 1 – 24 of 24) 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.java76 public void loadImage(Object data, ImageView imageView, OnImageLoadedListener listener) { in loadImage() argument
89 imageView.setImageDrawable(value); in loadImage()
93 } else if (cancelPotentialWork(data, imageView)) { in loadImage()
95 final BitmapWorkerTask task = new BitmapWorkerTask(data, imageView, listener); in loadImage()
98 imageView.setImageDrawable(asyncDrawable); in loadImage()
119 public void loadImage(Object data, ImageView imageView) { in loadImage() argument
120 loadImage(data, imageView, null); in loadImage()
201 public static void cancelWork(ImageView imageView) { in cancelWork() argument
202 final BitmapWorkerTask bitmapWorkerTask = getBitmapWorkerTask(imageView); in cancelWork()
218 public static boolean cancelPotentialWork(Object data, ImageView imageView) { in cancelPotentialWork() 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/browseable/DragAndDropAcrossApps/DragSource/src/com.example.android/dragsource/
DDragSourceFragment.java95 ImageView imageView = (ImageView) view.findViewById(R.id.image_one); in onCreateView() local
96 setUpDraggableImage(imageView, imageUri); in onCreateView()
97 imageView.setImageURI(imageUri); in onCreateView()
100 imageView = (ImageView) view.findViewById(R.id.image_two); in onCreateView()
101 setUpDraggableImage(imageView, imageUri); in onCreateView()
102 imageView.setImageURI(imageUri); in onCreateView()
134 private void setUpDraggableImage(ImageView imageView, final Uri imageUri) { in setUpDraggableImage() argument
183 DragStartHelper helper = new DragStartHelper(imageView, listener); in setUpDraggableImage()
/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/browseable/ScopedDirectoryAccess/src/com.example.android.scopeddirectoryaccess/
DDirectoryEntryAdapter.java43 viewHolder.imageView.setImageResource(R.drawable.ic_directory_grey600_36dp); in onBindViewHolder()
45 viewHolder.imageView.setImageResource(R.drawable.ic_description_grey600_36dp); in onBindViewHolder()
65 public ImageView imageView; field in DirectoryEntryAdapter.ViewHolder
71 imageView = (ImageView) v.findViewById(R.id.imageview_entry); in ViewHolder()
/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.java79 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/browseable/DragAndDropAcrossApps/DropTarget/src/com.example.android/droptarget/
DDropTargetFragment.java71 final ImageView imageView = (ImageView) rootView.findViewById(R.id.image_target); in onCreateView() local
75 imageView.setOnDragListener(imageDragListener); in onCreateView()
82 imageView.setImageURI(mImageUri); in onCreateView()
/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.java178 final ImageView imageView = new ImageView(getActivity()); in onCreateDialog() local
179 mDialog.setContentView(imageView); in onCreateDialog()
196 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/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/ui/
DDetailFragment.java84 ImageView imageView = (ImageView) view.findViewById(R.id.imageView); in onCreateView() local
104 .into(imageView); in onCreateView()
/development/samples/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/ui/
DAttractionsGridPagerAdapter.java110 ImageView imageView = (ImageView) view.findViewById(R.id.imageView); in instantiateItem() local
126 imageView.setImageBitmap(attraction.image); in instantiateItem()
129 imageView.setImageBitmap(attraction.secondaryImage); in instantiateItem()
/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/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DComplicationSimpleConfigActivity.java187 ImageView imageView = itemHolder.iconImageView; in onBindViewHolder() local
188 imageView.setImageDrawable(mItems.get(position).icon); in onBindViewHolder()
/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.java251 mThumbView = (ImageView) findViewById(R.id.imageView); in setupViews()