From 7f23453cef9c336e819d2b32783db95daed6a8b5 Mon Sep 17 00:00:00 2001 From: Maxim Leshchenko Date: Thu, 18 Mar 2021 13:38:47 +0200 Subject: [PATCH] Fix display of navigation drawer header on devices with high status bar --- res/layout/nav_header.xml | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/res/layout/nav_header.xml b/res/layout/nav_header.xml index 55f8d72d..515491b8 100644 --- a/res/layout/nav_header.xml +++ b/res/layout/nav_header.xml @@ -1,21 +1,20 @@ - + android:layout_height="wrap_content" + android:fitsSystemWindows="true"> + android:paddingStart="@dimen/nav_header_horizontal_margin" + android:paddingLeft="@dimen/nav_header_horizontal_margin" + android:paddingTop="@dimen/activity_vertical_margin" + android:paddingEnd="@dimen/nav_header_horizontal_margin" + android:paddingRight="@dimen/nav_header_horizontal_margin" + android:paddingBottom="@dimen/activity_vertical_margin"> + android:layout_gravity="center_vertical" + android:orientation="vertical"> - \ No newline at end of file +