roughike / BottomBar

(Deprecated) A custom view component that mimics the new Material Design Bottom Navigation pattern.
Apache License 2.0
8.43k stars 1.51k forks source link

Turn off bar hiding when scrolling #844

Closed slikasgiedrius closed 6 years ago

slikasgiedrius commented 6 years ago

How can I prevent my bottom bar from hiding while scrolling?

wangerekaharun commented 6 years ago

@slikasgiedrius With the versions 2.3.0 and up, in shy mode, you can show / hide the bar as follows:

// Show: bottomBar.getShySettings().showBar();

// Hide: bottomBar.getShySettings().hideBar(); On non-shy mode, it's up to you how to hide / show it, since the BottomBar is just a regular View.

slikasgiedrius commented 6 years ago

The bottom bar is hiding while scrolling. Non of these fields are working

wangerekaharun commented 6 years ago

its not supposed to...check on your code

slikasgiedrius commented 6 years ago

Do you really understand my question? What I need is some code which would change the current behaviour of bottom bar. I need to make my bottom bar always visible, when user scrolling as well..

wangerekaharun commented 6 years ago

I understand your question very well and unless you set the shy mode the bottom bar by default never hides on scrolling.

slikasgiedrius commented 6 years ago

I am just initialising this bottom bar and setting them as active. I am not doing anything with shy modes etc etc.

wangerekaharun commented 6 years ago

Kindly send the layout code for the activity where you are placing the bottom bar it will be much better to see where the problem is that way

slikasgiedrius commented 6 years ago

It looks like the other developer added shy parameter inside xml.. I am really sorry, the problem is off. Huge thanks !