ImageView adjustViewBounds not working with Relative Layout
问题 I have an ImageView and have set its layout_height to "100dp" and its layout_width to "wrap_content". The drawable used has bigger actual dimensions that are 130dp (width) X 215dp (height). When the ImageView is placed inside a LinearLayout , if I set adjustViewBounds to true, it gets a width that is measured according to the drawable's aspect ratio and the layout_width. However, when placed inside a RelativeLayout the ImageView gets the same width as the drawable (130dp), no matter the