Skip to content

Commit

Permalink
- improve padding for first and last element in material 3 theming
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed Nov 5, 2021
1 parent 5e0c1b3 commit 31df880
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,10 @@ open class MaterialDrawerSliderView @JvmOverloads constructor(context: Context,

if (headerView == null && accountHeader == null) {
if (stickyHeaderView == null) {
recyclerView.updatePadding(top = insets.systemWindowInsetTop)
recyclerView.updatePadding(top = insets.systemWindowInsetTop + context.resources.getDimensionPixelSize(R.dimen.material_drawer_padding_top_bottom))
}
if (stickyFooterView == null) {
recyclerView.updatePadding(bottom = insets.systemWindowInsetBottom)
recyclerView.updatePadding(bottom = insets.systemWindowInsetBottom + context.resources.getDimensionPixelSize(R.dimen.material_drawer_padding_top_bottom))
}
}

Expand Down

0 comments on commit 31df880

Please sign in to comment.