I created the following ImageView:

<ImageView android:id="@+id/homeImage" android:layout_width="match_parent" android:layout_height="wrap_content" android:src="@drawable/homescreen_200px" android:scaleType="fitStart" android:background="@color/red" /> 

Background specifically set, because I could not understand why my next element is drawn so low. It turned out that ImageView sticks down somewhere 30 pixels below the image. I do not understand what could be the matter? How do I remove this field? Like wrap_content for height should provide this.

    1 answer 1

    Try adding the android:adjustViewBounds="true" attribute to your ImageView android:adjustViewBounds="true"

    • works, thanks - Helena2977