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
The accepted answer is perfect, however if you want to do it from xml, you can use android:scaleType="fitXY"
android:scaleType="fitXY"