/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/training/bitmapfun/src/com/example/android/bitmapfun/util/ |
ImageWorker.java | 29 import android.widget.ImageView; 37 * 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 72 * @param imageView The ImageView to bind the downloaded image to. 74 public void loadImage(Object data, ImageView imageView) { 87 imageView.setImageBitmap(bitmap); 88 } else if (cancelPotentialWork(data, imageView)) { 89 final BitmapWorkerTask task = new BitmapWorkerTask(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 | 32 import android.widget.ImageView; 160 assertFalse(mToast.getView() instanceof ImageView); 162 final ImageView imageView = new ImageView(mActivity); 164 imageView.setImageDrawable(drawable); 168 mToast.setView(imageView); 173 assertSame(imageView, mToast.getView()); 174 assertShowAndHide(imageView);
|
/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...] |
/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/training/bitmapfun/src/com/example/android/bitmapfun/ui/ |
ImageGridFragment.java | 39 import android.widget.ImageView; 85 // 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 ImageView(mContext); 274 imageView.setScaleType(ImageView.ScaleType.CENTER_CROP) [all...] |
ImageDetailFragment.java | 26 import android.widget.ImageView; 39 private ImageView mImageView; 76 // Inflate and locate the main ImageView 78 mImageView = (ImageView) v.findViewById(R.id.imageView); 86 // Use the parent activity to load the image asynchronously into the ImageView (so a single 93 // Pass clicks on the ImageView to the parent activity to handle
|
/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...] |
/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...] |
/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/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);
|
/external/webkit/Source/WebKit/mac/Panels/ |
WebAuthenticationPanel.h | 41 IBOutlet id imageView;
|
/tools/motodev/src/plugins/android.codeutils/templates/activity_samples/endless_list/ |
endless_list_activity.java | 33 import android.widget.ImageView; 295 ImageView imageView; 307 imageView = (ImageView) rowView.findViewById(R.id.img01); 309 imageView.setImageResource(items.get(position).imageId); 326 imageView.setImageResource(android.R.drawable.progress_indeterminate_horizontal);
|
/tools/motodev/src/plugins/android.codeutils/templates/activity_samples/endless_list_usingfragment/ |
FragmentEndlessList.java | 34 import android.widget.ImageView; 315 ImageView imageView; 327 imageView = (ImageView) rowView.findViewById(R.id.img01); 329 imageView.setImageResource(items.get(position).imageId); 348 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();
|
ProjectPickerAdapter.java | 39 import android.widget.ImageView; 137 ImageView iv = (ImageView) v.findViewById(R.id.thumbnail); 195 private Bitmap getThumbnail(String projectPath, ImageView imageView, String title, 201 new LoadPreviewBitmapTask(this, projectPath, imageView, mItemWidth, mItemHeight, 245 private ImageView mImageView; 253 ImageView imageView, int width, int height, String title, String duration, 257 mImageView = imageView; [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
AnimationDrawableTest.java | 34 import android.widget.ImageView; 64 ImageView imageView = (ImageView) activity.findViewById(R.id.imageview); 65 imageView.setBackgroundResource(R.drawable.animationdrawable); 66 mAnimationDrawable = (AnimationDrawable) imageView.getBackground();
|