HomeSort by relevance Sort by last modified time
    Searched refs:imageView (Results 1 - 25 of 46) sorted by null

1 2

  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
ImageViewTest.java 10 import android.widget.ImageView;
29 private ImageView imageView;
36 imageView = new ImageView(Robolectric.application);
37 imageView.setImageBitmap(bitmap);
42 imageView.setImageMatrix(new Matrix());
44 visualize(imageView));
48 imageView.setImageMatrix(matrix);
50 visualize(imageView));
    [all...]
  /development/samples/training/ContactsList/src/com/example/android/contactslist/util/
ImageLoader.java 30 import android.widget.ImageView;
39 * ImageView. It handles things like using a memory and disk cache, running the work in a background
64 * Load an image specified by the data parameter into an ImageView (override
70 * @param imageView The ImageView to bind the downloaded image to.
72 public void loadImage(Object data, ImageView imageView) {
74 imageView.setImageBitmap(mLoadingBitmap);
86 imageView.setImageBitmap(bitmap);
87 } else if (cancelPotentialWork(data, imageView)) {
    [all...]
  /sdk/apps/NotificationStudio/src/com/android/notificationstudio/editor/
BitmapEditor.java 21 import android.widget.ImageView;
28 protected void setImage(ImageView imageView, Object value) {
29 imageView.setImageBitmap((Bitmap) value);
IconEditor.java 27 import android.widget.ImageView;
28 import android.widget.ImageView.ScaleType;
69 final ImageView imageView = new ImageView(v.getContext());
70 imageView.setScaleType(ScaleType.CENTER);
71 imageView.setOnTouchListener(new OnTouchListener(){
84 setImage(imageView, iconResId);
94 imageView.setLayoutParams(flp);
96 imageViewHolder.addView(imageView);
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
ImageViewTest.java 44 import android.widget.ImageView;
45 import android.widget.ImageView.ScaleType;
51 * Test {@link ImageView}.
54 private ImageView mImageView;
62 * Find the ImageView specified by id.
65 * @return the ImageView
67 private ImageView findImageViewById(int id) {
68 return (ImageView) mActivity.findViewById(id);
107 new ImageView(mActivity);
109 new ImageView(mActivity, null)
    [all...]
  /development/samples/XmlAdapters/src/com/example/android/xmladapters/
ImageDownloader.java 33 import android.widget.ImageView;
48 * This helper class download images from the Internet and binds those with the provided ImageView.
90 * Download the specified image from the Internet and binds it to the provided ImageView. The
92 * otherwise. A null bitmap will be associated to the ImageView if an error occurs.
95 * @param imageView The ImageView to bind the downloaded image to.
97 public void download(String url, ImageView imageView) {
98 download(url, imageView, null);
102 * Same as {@link #download(String, ImageView)}, with the possibility to provide an additiona
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/app/
SetWallpaperActivity.java 34 import android.widget.ImageView;
62 final ImageView imageView = (ImageView) findViewById(R.id.imageview);
63 imageView.setDrawingCacheEnabled(true);
64 imageView.setImageDrawable(wallpaperDrawable);
71 imageView.setImageDrawable(wallpaperDrawable);
72 imageView.invalidate();
80 wallpaperManager.setBitmap(imageView.getDrawingCache())
    [all...]
  /development/samples/training/bitmapfun/src/com/example/android/bitmapfun/util/
ImageWorker.java 32 import android.widget.ImageView;
38 * ImageView. It handles things like using a memory and disk cache, running the work in a background
65 * Load an image specified by the data parameter into an ImageView (override
73 * @param imageView The ImageView to bind the downloaded image to.
75 public void loadImage(Object data, ImageView imageView) {
88 imageView.setImageDrawable(value);
89 } else if (cancelPotentialWork(data, imageView)) {
90 final BitmapWorkerTask task = new BitmapWorkerTask(imageView);
    [all...]
  /packages/apps/Stk/src/com/android/stk/
StkMenuAdapter.java 26 import android.widget.ImageView;
57 ImageView imageView = ((ImageView) convertView.findViewById(R.id.icon));
59 imageView.setVisibility(View.GONE);
61 imageView.setImageBitmap(item.icon);
62 imageView.setVisibility(View.VISIBLE);
  /development/samples/ApiDemos/src/com/example/android/apis/view/
Gallery1.java 33 import android.widget.ImageView;
118 ImageView imageView;
120 convertView = new ImageView(mContext);
122 imageView = (ImageView) convertView;
123 imageView.setScaleType(ImageView.ScaleType.FIT_XY);
124 imageView.setLayoutParams(new Gallery.LayoutParams(
129 imageView.setBackgroundResource(mGalleryItemBackground)
    [all...]
Grid2.java 28 import android.widget.ImageView;
64 ImageView imageView;
66 imageView = new ImageView(mContext);
67 imageView.setLayoutParams(new GridView.LayoutParams(45, 45));
68 imageView.setAdjustViewBounds(false);
69 imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
70 imageView.setPadding(8, 8, 8, 8)
    [all...]
  /packages/apps/Settings/src/com/android/settings/
IconPreferenceScreen.java 25 import android.widget.ImageView;
50 ImageView imageView = (ImageView) view.findViewById(R.id.icon);
51 if (imageView != null && mIcon != null) {
52 imageView.setImageDrawable(mIcon);
  /development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/
ActivityAnimations.java 33 import android.widget.ImageView;
51 HashMap<ImageView, PictureData> mPicturesData = new HashMap<ImageView, PictureData>();
76 ImageView imageView = new ImageView(this);
77 imageView.setOnClickListener(thumbnailClickListener);
78 imageView.setImageDrawable(thumbnailDrawable);
79 mPicturesData.put(imageView, pictureData);
80 mGridLayout.addView(imageView);
    [all...]
  /development/samples/training/bitmapfun/src/com/example/android/bitmapfun/ui/
ImageGridFragment.java 39 import android.widget.ImageView;
84 // The ImageFetcher takes care of loading images into our ImageView children asynchronously
243 // Two types of views, the normal ImageView and the top row of empty views
270 // Now handle the main ImageView thumbnails
271 ImageView imageView;
273 imageView = new RecyclingImageView(mContext);
274 imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
275 imageView.setLayoutParams(mImageViewLayoutParams)
    [all...]
  /frameworks/ex/chips/src/com/android/ex/chips/
SingleRecipientArrayAdapter.java 25 import android.widget.ImageView;
56 ImageView imageView = (ImageView) view.findViewById(android.R.id.icon);
59 imageView.setVisibility(View.VISIBLE);
  /packages/apps/Gallery2/src/com/android/gallery3d/ingest/adapter/
MtpAdapter.java 133 MtpThumbnailTileView imageView;
135 imageView = (MtpThumbnailTileView) mInflater.inflate(
138 imageView = (MtpThumbnailTileView) convertView;
140 imageView.setMtpDeviceAndObjectInfo(mModel.getDevice(), (MtpObjectInfo)getItem(position), mGeneration);
141 return imageView;
  /packages/apps/Calendar/src/com/android/calendar/
ContactsAsyncHelper.java 31 import android.widget.ImageView;
54 public void onImageLoadComplete(int token, Object cookie, ImageView iView,
68 public ImageView view;
134 * Note, when the query is started, we make the ImageView INVISIBLE if the
139 ImageView imageView, Uri contact, int placeholderImageResource) {
145 imageView.setVisibility(View.VISIBLE);
146 imageView.setImageResource(placeholderImageResource);
156 args.view = imageView;
174 imageView.setVisibility(View.VISIBLE)
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/event/
EventLocationAdapter.java 39 import android.widget.ImageView;
199 final ImageView imageView = (ImageView) view.findViewById(R.id.icon);
200 if (imageView != null) {
202 imageView.setVisibility(View.INVISIBLE);
204 imageView.setVisibility(View.VISIBLE);
205 imageView.setImageResource(result.mDefaultIcon);
210 imageView.setTag(result.mContactPhotoUri);
215 imageView.setImageBitmap(cachedPhoto)
    [all...]
  /development/samples/MultiResolution/src/com/example/android/multires/
MultiRes.java 23 import android.widget.ImageView;
67 ImageView imageView = (ImageView) findViewById(R.id.image_view);
68 imageView.setImageResource(mPhotoIds[photoIndex]);
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
CustomBar.java 43 import android.widget.ImageView;
115 if (child instanceof ImageView) {
116 ImageView imageView = (ImageView) child;
139 imageView.setImageDrawable(drawable);
174 if (child instanceof ImageView) {
175 ImageView imageView = (ImageView) child
    [all...]
  /packages/apps/Phone/src/com/android/phone/
AnimationUtils.java 29 import android.widget.ImageView;
210 final ImageView imageView, final Drawable from, final Drawable to) {
220 log("Start cross-fade animation for " + imageView
227 imageView.setImageDrawable(crossFadeDrawable);
249 imageView.setImageDrawable(to);
264 imageView.setImageDrawable(transitionDrawable);
266 imageView.setTag(to);
269 log("*Not* start cross-fade. " + imageView);
  /packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
ResultActivity.java 34 import android.widget.ImageView;
35 import android.widget.ImageView.ScaleType;
170 ImageView imageView = new ImageView(this);
171 imageView.setImageBitmap(bitmap);
172 imageView.setPadding(4, 4, 4, 4);
173 imageView.setScaleType(ScaleType.FIT_START);
174 addRow(labelView, imageView);
  /development/samples/training/threadsample/src/com/example/android/threadsample/
PhotoManager.java 191 // input ImageView
199 * ImageView. The weak reference won't have changed, even if
200 * the input ImageView has.
205 * Compares the URL of the input ImageView to the URL of the
206 * weak reference. Only updates the bitmap in the ImageView
208 * ImageView.
236 * ImageView's bitmap to the bitmap in the
379 * @param imageView The ImageView that will get the resulting Bitmap
384 PhotoView imageView,
    [all...]
  /external/webkit/Source/WebKit/mac/Panels/
WebAuthenticationPanel.h 41 IBOutlet id imageView;
  /packages/apps/VideoEditor/src/com/android/videoeditor/
BaseAdapterWithImages.java 32 import android.widget.ImageView;
49 private final ImageView mImageView;
53 mImageView = (ImageView) rowView.findViewById(R.id.item_preview);
156 final ImageView imageView = (ImageView)rowView.findViewById(R.id.item_preview);
157 final BitmapDrawable drawable = (BitmapDrawable)imageView.getDrawable();

Completed in 1341 milliseconds

1 2