Resize ImageView Image in View Android Example

How to resize an image in ImageView Android source code.
Resize imageview layout and image will resize too:

	public void resizeImageView(int width, int height) {
		final ImageView picture1 = (ImageView)findViewById(;
		LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(width, height);
This entry was posted in Android Examples Code, Bitmap, drawing and tagged , , . Bookmark the permalink.

Comments are closed.