Best code examples for ImageView setImageBitmap method (android.widget.ImageView.setImageBitmap)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for ImageView setImageBitmap method.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

ImageView setImageBitmap examples from Open Source projects
This code example shows how to use the following methods: setLayoutParams, setPadding, setImageBitmap, setScaleType
92:	imageView = new ImageView(mContext); 
93:	imageView.setLayoutParams(new GridView.LayoutParams(50, 50)); 
94:	imageView.setScaleType(ImageView.ScaleType.FIT_XY); 
95:	imageView.setPadding(4, 4, 4, 4); 
-
101:	imageView.setImageBitmap(emotions.get(index.get(position))); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getTag, invalidate, setImageBitmap
54:	if (path.equals(image.getTag())) { 
55:	image.setImageBitmap(bitmap); 
56:	image.invalidate(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: clearAnimation, getAnimation, getContext, getTag, setTag
94:	if (!equals(view.getTag())) 
-
97:	view.setTag(null); 
-
99:	if (fadeIn && view.getAnimation() == null) 
100:	view.startAnimation(AnimationUtils.loadAnimation(view.getContext(), 
-
102:	view.setImageBitmap(result); 
-
104:	view.setImageDrawable(null); 
105:	view.clearAnimation(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: setLayoutParams, setPadding, setImageBitmap, setScaleType
84:	ImageView iv = new ImageView(context); 
-
87:	iv.setImageBitmap(photo); 
88:	iv.setScaleType(ScaleType.CENTER); 
89:	iv.setPadding(0, 4, 4, 0); 
90:	iv.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: setAlpha, setBackgroundColor, setImageBitmap
319:	ImageView v = new ImageView(context); 
-
321:	v.setAlpha((float) 0.7); 
322:	v.setBackgroundColor(backGroundColor); 
323:	v.setImageBitmap(bm); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getAnimation, startAnimation, setImageBitmap
106:	imageView.setImageBitmap(bitmap); 
-
110:	imageView.startAnimation(animation); 
-
115:	Animation old = imageView.getAnimation(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: setImageBitmap
44:	Bitmap roundedBitmap = roundCorners(bitmap, imageView, roundPixels); 
45:	imageView.setImageBitmap(roundedBitmap); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: setBackgroundColor, setPadding, setImageBitmap
50:	ImageView iv = new ImageView(mListView.getContext()); 
51:	iv.setBackgroundColor(mFloatBGColor); 
52:	iv.setPadding(0, 0, 0, 0); 
53:	iv.setImageBitmap(mFloatBitmap); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setImageBitmap, setVisibility
142:	if (imgView != null && AsyncDrawable.getTask(imgView) == this) { //make sure the ImageView instance has not been reused for another page 
-
144:	imgView.setImageBitmap(result); 
145:	imgView.setVisibility(View.VISIBLE); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getTag, invalidate, setImageBitmap
54:	if (path.equals(image.getTag())) { 
55:	image.setImageBitmap(bitmap); 
56:	image.invalidate(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: setBackgroundResource, setLayoutParams, setImageBitmap, setScaleType
55:	imageView = new ImageView(mContext); 
-
64:	imageView.setLayoutParams(new Gallery.LayoutParams(unfocusedSize, unfocusedSize)); 
-
67:	imageView.setScaleType(ImageView.ScaleType.FIT_CENTER); 
68:	imageView.setBackgroundResource(mGalleryItemBackground); 
-
86:	imageView.setImageBitmap(bitMap); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getLayoutParams, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop
167:	LayoutParams param = mButton.getLayoutParams(); 
-
169:	- mButton.getPaddingLeft() - mButton.getPaddingRight(); 
-
171:	- mButton.getPaddingTop() - mButton.getPaddingBottom(); 
-
188:	mButton.setImageDrawable(drawable); 
-
190:	mButton.setImageBitmap(mThumb); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setImageBitmap
223:	view.setImageBitmap(bitmap); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setPadding, setImageBitmap, setScaleType
170:	ImageView imageView = new ImageView(this); 
171:	imageView.setImageBitmap(bitmap); 
172:	imageView.setPadding(4, 4, 4, 4); 
173:	imageView.setScaleType(ScaleType.FIT_START); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getTag, setImageBitmap
167:	if (tag != null && tag.equals(imageView.getTag())) { // view 使いまわされ対策 
168:	imageView.setImageBitmap(result); 
-
179:	imageDownloadHelper.onDownloadSuccess(imageView); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setOnClickListener, getDrawable, setImageBitmap
60:	ImageView closeImageView = new ImageView(GameActivity.getContext()); 
61:	closeImageView.setOnClickListener(new View.OnClickListener() { 
-
82:	closeImageView.setImageBitmap(BitmapFactory.decodeByteArray(closeBytes, 0, closeBytes.length)); 
83:	int margin = closeImageView.getDrawable().getIntrinsicWidth() / 2; 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setImageBitmap
181:	imageView.setImageBitmap(bitmap); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setBackgroundDrawable, setImageBitmap
163:	final ImageView image_view = new ImageView(getContext()); 
-
173:	image_view.setBackgroundDrawable(new AlphaPatternDrawable((int) (5 * mDensity))); 
174:	image_view.setImageBitmap(getColorPreviewBitmap(getContext(), getValue())); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setAdjustViewBounds, setImageBitmap, setScaleType
81:	imageView = new ImageView( context ); 
82:	imageView.setAdjustViewBounds( false ); 
83:	imageView.setScaleType( ImageView.ScaleType.MATRIX ); 
-
85:	imageView.setImageBitmap( bitmap ); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setBackgroundResource, setLayoutParams, setImageBitmap, setScaleType
69:	ImageView imageView = new ImageView(mContext); 
-
71:	imageView.setImageBitmap( bitmaps[position] ); 
72:	imageView.setLayoutParams(new Gallery.LayoutParams(250, 200)); 
73:	imageView.setScaleType(ImageView.ScaleType.CENTER_INSIDE); 
74:	imageView.setBackgroundResource(mGalleryItemBackground); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setImageBitmap
161:	view.setImageBitmap(bitmap); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getLayoutParams, setImageBitmap
91:	.getLayoutParams(); 
-
135:	ImageView v = new ImageView(context); 
136:	v.setImageBitmap(bitmap); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setLayoutParams, setPadding, setImageBitmap, setScaleType
76:	imageView = new ImageView(mContext); 
77:	imageView.setLayoutParams(new GridView.LayoutParams(150, 150)); 
78:	imageView.setScaleType(ImageView.ScaleType.CENTER_CROP); 
79:	imageView.setPadding(1, 1, 1, 1); 
-
88:	imageView.setImageBitmap(BitmapFactory.decodeFile(DecodeBitmaps.thumbPosition.get(position))); 
-
93:	imageView.setImageBitmap(BitmapFactory.decodeFile(DecodeBitmaps.thumbPosition.get(position),opt)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setImageBitmap, setVisibility
57:	view.setVisibility(View.VISIBLE); 
58:	view.setImageBitmap(bitmap); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setAdjustViewBounds, setImageBitmap, setScaleType
141:	imageView = new ImageView( context ); 
142:	imageView.setAdjustViewBounds( false ); 
143:	imageView.setScaleType( ImageView.ScaleType.MATRIX ); 
-
145:	imageView.setImageBitmap( bitmap ); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setImageBitmap
55:	ImageView image = new ImageView(TextGammaActivity.this); 
56:	image.setImageBitmap(b); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: animate, getTag, setAlpha, setImageBitmap
465:	if (this.equals(imageView.getTag())) { 
-
469:	imageView.setAlpha(0f); 
470:	imageView.setImageBitmap(bitmap); 
471:	imageView.animate() 
-
477:	imageView.setImageBitmap(bitmap); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setImageBitmap
183:	imageView.setImageBitmap(bitmap); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: startAnimation, setImageBitmap
45:	imageView.setImageBitmap(bitmap); 
-
48:	imageView.startAnimation(animation); 
-
50:	mGrid.addView(imageView); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setAlpha, setBackgroundColor, setImageBitmap
319:	ImageView v = new ImageView(context); 
-
321:	v.setAlpha((float) 0.7); 
322:	v.setBackgroundColor(backGroundColor); 
323:	v.setImageBitmap(bm); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setBackgroundColor, setImageBitmap
255:	ImageView imageView = new ImageView(getContext()); 
256:	imageView.setBackgroundColor(DRAG_BACKGROUND_COLOR); 
-
271:	imageView.setImageBitmap(glowingBitmap); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setImageBitmap
51:	final Bitmap roundedBitmap = roundCorners(bitmap, imageView, roundPixels); 
52:	imageView.setImageBitmap(roundedBitmap); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getTag, setImageBitmap
248:	if (photo != null && imageView.getTag() == contactPhotoUri) { 
249:	imageView.setImageBitmap(photo); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setBackgroundColor, setPadding, setImageBitmap
76:	mImageView = new ImageView(mListView.getContext()); 
-
78:	mImageView.setBackgroundColor(mFloatBGColor); 
79:	mImageView.setPadding(0, 0, 0, 0); 
80:	mImageView.setImageBitmap(mFloatBitmap); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setImageBitmap
55:	ImageView image = new ImageView(TextGammaActivity.this); 
56:	image.setImageBitmap(b); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getDrawable, setImageBitmap, setImageDrawable
128:	Drawable existingDrawable = imageView.getDrawable(); 
-
139:	imageView.setImageDrawable(transitionDrawable); 
-
142:	imageView.setImageBitmap(bitmap); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDrawable, setImageBitmap
257:	Drawable drawable = mArrow.getDrawable(); 
-
266:	mArrow.setImageBitmap(bitmap); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setLayoutParams, setImageBitmap
106:	imageView = new ImageView(context); 
107:	imageView.setLayoutParams(new CoverFlow.LayoutParams((int) width, (int) height)); 
-
112:	imageView.setImageBitmap((Bitmap) getItem(position)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setAlpha, setBackgroundColor, setImageBitmap
319:	ImageView v = new ImageView(context); 
-
321:	v.setAlpha((float) 0.7); 
322:	v.setBackgroundColor(backGroundColor); 
323:	v.setImageBitmap(bm); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setContentDescription, setImageBitmap
115:	mImage.setImageBitmap(image); 
-
117:	mImage.setContentDescription(tab.getTitle()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getWidth, setImageBitmap
42:	Bitmap bitmap = decodeUri(uri, mImageView.getWidth()); 
-
44:	mImageView.setImageBitmap(bitmap); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getWidth, setImageBitmap
76:	Bitmap bitmap = decodeUri(uri, mImageView.getWidth()); 
-
78:	mImageView.setImageBitmap(bitmap); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setAlpha, setBackgroundColor, setImageBitmap
315:	ImageView v = new ImageView(context); 
-
317:	v.setAlpha((float) 0.7); 
318:	v.setBackgroundColor(backGroundColor); 
319:	v.setImageBitmap(bm); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getContext, setImageBitmap
48:	imageView.getContext(), bitmap); 
49:	imageView.setImageBitmap(reflection); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setAlpha, setBackgroundColor, setImageBitmap
319:	ImageView v = new ImageView(context); 
-
321:	v.setAlpha((float) 0.7); 
322:	v.setBackgroundColor(backGroundColor); 
323:	v.setImageBitmap(bm); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setLayoutParams, setPadding, setImageBitmap, setScaleType
162:	imageView = new ImageView(mContext); 
163:	imageView.setLayoutParams(new GridView.LayoutParams(85, 85)); 
164:	imageView.setScaleType(ImageView.ScaleType.CENTER_CROP); 
165:	imageView.setPadding(8, 8, 8, 8); 
-
170:	imageView.setImageBitmap(mLogos.get(position)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setAlpha, setBackgroundColor, setImageBitmap
319:	ImageView v = new ImageView(context); 
-
321:	v.setAlpha((float) 0.7); 
322:	v.setBackgroundColor(backGroundColor); 
323:	v.setImageBitmap(bm); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setLayoutParams, setPadding, setImageBitmap, setScaleType
79:	imageView = new ImageView(mContext); 
80:	imageView.setLayoutParams(new GridView.LayoutParams(px, py)); 
81:	imageView.setScaleType(ImageView.ScaleType.CENTER_CROP); 
82:	imageView.setPadding(8, 8, 8, 8); 
-
87:	imageView.setImageBitmap(folder); 
-
89:	imageView.setImageBitmap(bs[position]); 
Full Snippet Info
6
CodeRank
Related ImageView setImageBitmap Questions & Answers:
Other ImageView setImageBitmap Examples
45:	        bitmap = BitmapFactory.decodeStream(stream);
46:	
47:	        imageView.setImageBitmap(bitmap);
48:	      } catch (FileNotFoundException e) {
49:	        e.printStackTrace();

Read More

210:						options);
211:	
212:				imgPreview.setImageBitmap(bitmap);
213:			} catch (NullPointerException e) {
214:				e.printStackTrace();

Read More

39:	        Bitmap bitmap=memoryCache.get(url);
40:	        if(bitmap!=null)
41:	            imageView.setImageBitmap(bitmap);
42:	        else
43:	        {

Read More

315:	
316:			protected void onPostExecute(Bitmap result) {
317:				bmImage.setImageBitmap(result);
318:			}
319:		}

Read More

setImageBitmap Method Overview
Sets a Bitmap as the content of this ImageView.
See Also