ibrahimsn98 / SmoothBottomBar

A lightweight Android material bottom navigation bar library
MIT License
1.95k stars 253 forks source link

How to change background shape? #24

Closed abdulazizahwan closed 4 years ago

abdulazizahwan commented 4 years ago

How to change background shape from drawable resource file, maybe we want to use custom background that rounded in topLeftCorner and topRightCorner.

brookmg commented 4 years ago

Hey @abdulazizahwan, I tried to solve your problem in https://github.com/ibrahimsn98/SmoothBottomBar/pull/27. Check out the latest version and tell us what you think

ibrahimsn98 commented 4 years ago

You can set border radius to the background now.

gargVader commented 3 years ago

@ibrahimsn98 cornerRadius not only changes topRight and topLeft but all four corners which is not intended

gargVader commented 3 years ago

As a workaround, I just added a background drawable with the same color and same radius in order to hide the empty white portion at the bottom

gargVader commented 3 years ago

Screenshot_1624467998

brookmg commented 3 years ago

This might be a separate issue @gargVader. Can you instead open a new issue and explain the problem there?

gargVader commented 3 years ago

Okay. I will do that.

gargVader commented 3 years ago

Also is it possible to use SmoothBottomBar with Navigation Components in java?

gargVader commented 3 years ago

@brookmg

brookmg commented 3 years ago

Look at #56 maybe