HomeSort by relevance Sort by last modified time
    Searched defs:imageView (Results 1 - 25 of 42) 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]);
  /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/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);
SmsListPreference.java 30 import android.widget.ImageView;
60 ImageView imageView = (ImageView)view.findViewById(R.id.sms_image);
61 imageView.setImageDrawable(mImageDrawables[position]);
  /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/BitmapFun/src/main/java/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...]
  /developers/build/prebuilts/gradle/StorageClient/StorageClientSample/src/main/java/com/example/android/storageclient/
StorageClientFragment.java 35 import android.widget.ImageView;
220 final ImageView imageView = new ImageView(getActivity());
221 mDialog.setContentView(imageView);
225 // thread. Changing the ImageView to display the image must occur ON the UI thread.
238 imageView.setImageBitmap(bitmap);
  /developers/samples/android/content/documentsUi/StorageClient/StorageClientSample/src/main/java/com/example/android/storageclient/
StorageClientFragment.java 35 import android.widget.ImageView;
220 final ImageView imageView = new ImageView(getActivity());
221 mDialog.setContentView(imageView);
225 // thread. Changing the ImageView to display the image must occur ON the UI thread.
238 imageView.setImageBitmap(bitmap);
  /developers/samples/android/ui/actionbarcompat/ActionBarCompat-SearchView/src/main/src/com/example/android/actionbarcompat/searchview/
AppListFragment.java 30 import android.widget.ImageView;
147 // ImageView to display the application's icon
148 ImageView imageView = (ImageView) convertView.findViewById(R.id.icon);
154 imageView.setImageDrawable(icon);
157 // the ImageView
158 new ApplicationIconTask(imageView).execute(item);
221 * displays it in the given {@link ImageView}
224 private final ImageView mImageView
    [all...]
  /development/samples/browseable/StorageClient/src/com.example.android.storageclient/
StorageClientFragment.java 35 import android.widget.ImageView;
220 final ImageView imageView = new ImageView(getActivity());
221 mDialog.setContentView(imageView);
225 // thread. Changing the ImageView to display the image must occur ON the UI thread.
238 imageView.setImageBitmap(bitmap);
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
CustomBar.java 44 import android.widget.ImageView;
130 if (child instanceof ImageView) {
131 ImageView imageView = (ImageView) child;
155 imageView.setImageDrawable(drawable);
190 if (child instanceof ImageView) {
191 ImageView imageView = (ImageView) child
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/
UserPresetsAdapter.java 27 import android.widget.ImageView;
87 ImageView imageView;
98 viewHolder.imageView = (ImageView) convertView.findViewById(R.id.imageView);
109 viewHolder.imageView.setImageBitmap(action.getImage());
  /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;

Completed in 560 milliseconds

1 2