I have this ImageView
<ImageView android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/offer_img" />
I'm loading images into this ImageView from a URL and I want the image to always fit X (width of the screen) and readjust the height to keep the aspect ratio. Do I need some Java to do this or can I do it through XML alone?