Code examples for BitmapDrawable

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
55:	mDrawable.getPaint().setAntiAlias(true); // Force AA 
56:	mDrawable.setBounds(0, 0, mDrawable.getIntrinsicWidth(), mDrawable.getIntrinsicHeight()); 
Full Snippet Info
8
CodeRank
170:	final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap); 
171:	if (!scale) d.setTargetDensity(getResources().getDisplayMetrics()); 
-
174:	view.setLayoutParams(new LinearLayout.LayoutParams(d.getIntrinsicWidth(), 
175:	d.getIntrinsicHeight())); 
Full Snippet Info
8
CodeRank
109:	image.setAlpha(alpha); 
110:	image.draw(canvas); 
111:	image.setAlpha(0xFF); 
Full Snippet Info
8
CodeRank
184:	Drawable d = new BitmapDrawable(); 
-
186:	rpm.addActivityIcon(i, d); 
-
188:	assertThat(rpm.getActivityIcon(i)).isSameAs(d); 
189:	assertThat(rpm.getActivityIcon(i.getComponent())).isSameAs(d); 
Full Snippet Info
8
CodeRank
126:	BitmapDrawable drawable = new BitmapDrawable(Robolectric.application.getResources(), bitmap); 
127:	assertEquals(5, drawable.getIntrinsicWidth()); 
128:	assertEquals(10, drawable.getIntrinsicHeight()); 
Full Snippet Info
8
CodeRank
159:	Drawable d = new BitmapDrawable(); 
-
161:	rpm.addActivityIcon(i, d); 
-
163:	assertThat(rpm.getActivityIcon(i)).isSameAs(d); 
164:	assertThat(rpm.getActivityIcon(i.getComponent())).isSameAs(d); 
Full Snippet Info
8
CodeRank
146:	this.background = new BitmapDrawable(backgroundImage); 
Full Snippet Info
7
CodeRank
24:	setBackgroundDrawable(banner != null ? new BitmapDrawable(getResources(), banner) : null); 
Full Snippet Info
7
CodeRank
125:	Bitmap bitmap = bitmapDrawable.getBitmap(); 
-
127:	bitmapDrawable.setTargetDensity(mDisplayMetrics); 
Full Snippet Info
7
CodeRank
278:	: name == null ? new BitmapDrawable(mView.getResources(), getHandleBitmap(3)) : null; 
-
282:	int width = ImageCache.getWidth(drawable); 
283:	int height = ImageCache.getHeight(drawable); 
-
292:	mCanvas.drawBitmap(b.getBitmap(), mat, null); 
Full Snippet Info
7
CodeRank
55:	mDrawable.getPaint().setAntiAlias(true); // Force AA 
56:	mDrawable.setBounds(0, 0, mDrawable.getIntrinsicWidth(), mDrawable.getIntrinsicHeight()); 
Full Snippet Info
8
CodeRank
140:	final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap); 
141:	if (!scale) d.setTargetDensity(getResources().getDisplayMetrics()); 
-
144:	view.setLayoutParams(new LinearLayout.LayoutParams(d.getIntrinsicWidth(), 
145:	d.getIntrinsicHeight())); 
Full Snippet Info
7
CodeRank
22:	setImageDrawable(new BitmapDrawable(imageBitmap)); 
Full Snippet Info
7
CodeRank
170:	final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap); 
171:	if (!scale) d.setTargetDensity(getResources().getDisplayMetrics()); 
-
174:	view.setLayoutParams(new LinearLayout.LayoutParams(d.getIntrinsicWidth(), 
175:	d.getIntrinsicHeight())); 
Full Snippet Info
7
CodeRank
104:	BitmapDrawable bitmapDrawable = new BitmapDrawable(); 
-
107:	assertThat((BitmapDrawable) popupWindow.getBackground()).isSameAs(bitmapDrawable); 
Full Snippet Info
7
CodeRank
31:	Drawable drawable = new BitmapDrawable(processedBitmap); 
Full Snippet Info
7
CodeRank
31:	setImageDrawable(new BitmapDrawable(imageBitmap)); 
Full Snippet Info
7
CodeRank