Materialdrawer: How to remove footer bottom padding?

Created on 4 Sep 2017  路  14Comments  路  Source: mikepenz/MaterialDrawer

I added StickyDrawerItem to sample application and it works fine but there is bottom padding.
I want to remove this padding.

screenshot_2017-09-05-02-07-05

Is there any simple way to remove this?

question

All 14 comments

@AlexanderIgnacz is you activity in fullscreen mode?

which phone, which library version, which android version, what do you do?

does the same happen in the sample application?

Mode - FullScreen Mode
Library version - 5.9.4

...
.addStickyDrawerItems(new PrimaryDrawerItem().withName(R.string.drawer_item_custom).withIcon(FontAwesome.Icon.faw_eye)
...

I'll do some more tests and back again.

So, I tested on other types of drawers and those work fine.
But only for fullscreen mode, there is a unexpected bottom padding.

@AlexanderIgnacz you set the flag as linked by me?

Sorry, which flag do you mean?
I see only this line.
public DrawerBuilder withFullscreen(boolean fullscreen) {

yes. did you set withFullscreen true?

Yes, I'm testing on example application now.

How can I customize footer view so that hide bottom padding?

if withFullscreen(true) is provided in the DrawerBuilder the padding is not added here:
https://github.com/mikepenz/MaterialDrawer/blob/develop/library/src/main/java/com/mikepenz/materialdrawer/DrawerUtils.java#L312

Ops, if condition is wrong there.
It should be if (!(drawer.mTranslucentNavigationBar || drawer.mFullscreen) && Build.VERSION.SDK_INT >= 19) {

How can I use this change on my current library version 5.9.4?

well as you can't do the change directly in the lib.
I would suggest you get the StickyFooter and set the padding to 0

https://github.com/mikepenz/MaterialDrawer/blob/develop/library/src/main/java/com/mikepenz/materialdrawer/Drawer.java#L358

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pranjal-joshi picture pranjal-joshi  路  3Comments

Erwinstein picture Erwinstein  路  3Comments

HanderWei picture HanderWei  路  3Comments

meness picture meness  路  3Comments

fuentepa picture fuentepa  路  3Comments