fixed drawer menu paddings

This commit is contained in:
Mariotaku Lee 2017-10-02 22:03:50 +08:00
parent bec13f7188
commit 743d2a150c
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
2 changed files with 3 additions and 0 deletions

View File

@ -277,6 +277,8 @@ class AccountsDashboardFragment : BaseFragment(), LoaderCallbacks<AccountsInfo>,
}
override fun onApplySystemWindowInsets(insets: Rect) {
view?.findViewById<View?>(android.support.design.R.id.design_navigation_view)?.
setPadding(0, 0, 0, insets.bottom)
systemWindowsInsets.set(insets)
updateSystemWindowsInsets()
}

View File

@ -24,6 +24,7 @@
android:id="@+id/navigationView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:focusable="true"
app:headerLayout="@layout/header_drawer_account_selector"
app:menu="@menu/menu_account_dashboard"