I insert a picture in the ImageView, the picture sometimes changes. For some reason, with some pictures, indents appear somewhere above 20dp and as much from below, and with some pictures normally. Pictures come in different sizes. Indents appear exactly, these are not pictures with a white background above and below, there are pictures and indentation somewhere in 40dp.
After all, in theory, it should be filled to the width, and then the picture fits into the height.
<LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/snow"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/imageView2"/> <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:clickable="true" android:onClick="radioGroupInvisible" android:background="@drawable/selector_lateral_menu"> 