Customizing the use of NavigationView
NavigationView navigationView = (NavigationView)findViewById(R.id.nav_view); iv_haederdrawer = (ImageView)navigationView.getHeaderView(0).findViewById(R.id.iv_haederdrawer); Picasso.with(NewsActivity.this).load("http://cs635102.vk.me/v635102610/5f40/f0oxmR2iluw.jpg").into(iv_haederdrawer); XML markup
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="100dp" android:background="@color/drawerBackground" android:theme="@style/ThemeOverlay.AppCompat.Dark" android:gravity="bottom"> <ImageView android:layout_width="100dp" android:layout_height="90dp" android:adjustViewBounds="true" android:orientation="vertical" android:scaleType="fitStart" android:id="@+id/iv_haederdrawer" tools:ignore="RtlCompat" android:layout_alignParentLeft="false" android:longClickable="true"> </ImageView> It turns out that the picture instead of the set 90 dp, takes 100. And it does not decrease in the right proportions. I tried to apply different styles to the picture, nothing helps - the piece is not enough (about 10 dp from the top). What surprises me most is that the markup is moving out. I use Lenovo 6010 Android 5.0.2. On the tablet with the old android 4.4.2 everything is displayed correctly. Please tell where the problem is. I wonder who else what methods you use to reduce the pictures.
Here is how I want:


android:scaleType="fitStartattributeandroid:scaleType="fitStart- Vladyslav Matviienko