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
just change your ImageView height and width to wrap_content and use
exampleImage.setScaleType(ImageView.ScaleType.FIT_XY);
in your code.