tags:

views:

65

answers:

2

Hi Hello,

I am Having a table layout in that i am adding table rows dynamically.in that table row i am adding two image views and one text view.how to fix the size of the image displayed in the image view.Please any one can suggest the answer.

If this way is not suitable one for acheiving this task ,Please suggest another ways

A: 

There a several classes that provide 2D Graphics manipulation in android. A look at the dev guide might help you, 2D Graphics

ArtWorkAD
A: 

Check out Bitmap.createScaledBitmap(src, dstWidth, dstHeight, filter) to scale the image.

Consider these functions as well; ImageView.setPadding(0,0,0,0) and ImageView.setScaleType(ScaleType.CENTER_INSIDE) to make it fit nice in your table.

Cpt.Ohlund