Create an ImageView object and fetch the imageview in the xml by id:
Using java Syntax Highlighting
ImageView thisimage = (ImageView) findViewById(R.id.thisid)
Parsed in 0.029 seconds, using
GeSHi 1.0.8.4
and from there check out setMaxHeight, setMaxWidth, setMinimumHeight, setMinimumWidth, and see if any of those will suit your needs.
And of course, don't forget to add the ImageView back into it's parent layout:
Using java Syntax Highlighting
layout.addView(thisimage);
Parsed in 0.031 seconds, using
GeSHi 1.0.8.4
Hope that helps!
http://www.androidjavadoc.com/1.0_r1_src/index.html