Material-BottomNavigation icon indicating copy to clipboard operation
Material-BottomNavigation copied to clipboard

How to remove small padding on top

Open kevinvanmierlo opened this issue 7 years ago • 9 comments

There is a small padding on the top which creates a little gap between the BottomNavigation and the view above. It looks really weird. How do I remove this? Image: screen shot 2016-12-20 at 12 02 11

kevinvanmierlo avatar Dec 20 '16 11:12 kevinvanmierlo

Same here, any solution ?

hcknl avatar Dec 22 '16 12:12 hcknl

@hcknl Nope haven't found any, so I just used a different library.

kevinvanmierlo avatar Dec 22 '16 13:12 kevinvanmierlo

Which one?

Rainer-Lang avatar Dec 22 '16 13:12 Rainer-Lang

@Rainer-Lang This one: https://github.com/Ashok-Varma/BottomNavigation

kevinvanmierlo avatar Dec 22 '16 13:12 kevinvanmierlo

Is this lib still maintained? I'm wondering about the open issues...

Rainer-Lang avatar Dec 22 '16 13:12 Rainer-Lang

@Rainer-Lang I don't know if it's still maintained, but it works for me now. I'd suggest to come back to this library when this issue is fixed

kevinvanmierlo avatar Dec 22 '16 14:12 kevinvanmierlo

You can override a couple of the dimen values from the library. Just add these two lines to your dimen file:

<!-- Adjust this to change the amount of elevation -->
<dimen name="bbn_elevation">8dp</dimen>
<!-- This sets the padding to 0 -->
<dimen name="bbn_top_shadow_height">0dp</dimen>

enyciaa avatar Jan 03 '17 17:01 enyciaa

@enyciaa Thx, It's work for me.

metd avatar Jan 15 '17 18:01 metd

@enyciaa Thx

mikaelzero avatar Jul 21 '17 08:07 mikaelzero