I have an imageview that has its height and width set to fill_parent with a linearlayout that has the same values set. So I suppose th
imageview
fill_parent
linearlayout
Trying using :
imageview.setFitToScreen(true); imageview.setScaleType(ScaleType.FIT_CENTER);
This will fit your imageview to the screen with the correct ratio.