From 45194061b3d5f72175734e2e7035c75e53012ad2 Mon Sep 17 00:00:00 2001 From: Mauricio Colli Date: Thu, 2 Apr 2020 11:05:19 -0300 Subject: [PATCH] Make the drawer layout adapt to any status bar size This improves the drawer specifically for phones that have a notch. --- app/src/main/res/layout/drawer_header.xml | 30 ++++++++++++++--------- app/src/main/res/values-v21/dimens.xml | 6 ----- app/src/main/res/values/dimens.xml | 2 +- 3 files changed, 20 insertions(+), 18 deletions(-) delete mode 100644 app/src/main/res/values-v21/dimens.xml diff --git a/app/src/main/res/layout/drawer_header.xml b/app/src/main/res/layout/drawer_header.xml index f2a776659..4abf20c44 100644 --- a/app/src/main/res/layout/drawer_header.xml +++ b/app/src/main/res/layout/drawer_header.xml @@ -1,24 +1,30 @@ - + app:layout_constraintTop_toTopOf="parent"> + app:autoSizeTextType="uniform" + tools:ignore="UnusedAttribute" /> @@ -108,7 +115,8 @@