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

1 2

  /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);
  /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...]
  /development/samples/ApiDemos/src/com/example/android/apis/view/
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...]
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...]
  /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/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]);
  /external/webkit/Source/WebKit/mac/Panels/
WebAuthenticationPanel.h 41 IBOutlet id imageView;
  /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);
RecipientAlternatesAdapter.java 34 import android.widget.ImageView;
439 ImageView imageView = (ImageView) view.findViewById(android.R.id.icon);
446 imageView.setImageURI(entry.getPhotoThumbnailUri());
447 imageView.setVisibility(View.VISIBLE);
450 imageView.setVisibility(View.GONE);
  /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/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/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...]
  /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...]
ToastTest.java 33 import android.widget.ImageView;
184 assertFalse(mToast.getView() instanceof ImageView);
186 final ImageView imageView = new ImageView(mActivity);
188 imageView.setImageDrawable(drawable);
192 mToast.setView(imageView);
197 assertSame(imageView, mToast.getView());
198 assertShowAndHide(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);
  /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();
  /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...]
  /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...]
  /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/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;
  /development/samples/HoneycombGallery/src/com/example/android/hcgallery/
ContentFragment.java 41 import android.widget.ImageView;
61 // The bitmap currently used by ImageView
74 final ImageView imageView = (ImageView) mContentView.findViewById(R.id.image);
95 return processDrop(event, imageView);
238 boolean processDrop(DragEvent event, ImageView imageView) {
291 // Get the bitmap that needs to be drawn and update the ImageView
294 ((ImageView) getView().findViewById(R.id.image)).setImageBitmap(mBitmap)
    [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/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...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/res/
ViewLoaderTest.java 154 assertInstanceOf(ImageView.class, view.findViewById(R.id.icon));
157 assertInstanceOf(ImageView.class, view.findViewById(android.R.id.icon));
316 ImageView imageView = (ImageView) mediaView.findViewById(R.id.image);
317 ShadowImageView shadowImageView = Robolectric.shadowOf(imageView);

Completed in 507 milliseconds

1 2